aboutsummaryrefslogblamecommitdiffstats
path: root/python-arg/PKGBUILD
blob: 79c14fb0f540f60f86eb775937ca30fb6a48b190 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                                
            







                                                             
                                                                             



















                                                             
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
pkgbase=python-arg
pkgname=(python-arg python2-arg)
pkgver=1.0.1
pkgrel=1
pkgdesc="A simple argument parser for Python"
arch=('any')
url="https://github.com/maandree/python-arg"
license=('custom:ISC')
depends=()
makedepends=(python python2)
source=($pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=(1f392bf5e671de0b68d93b5ce717ec658ff944b4c88a25b640db518e76a26ae5)

build() {
    true
}

check() {
    cd "$srcdir/$pkgbase-$pkgver"
    make check PYTHON_MAJOR=3
    make check PYTHON_MAJOR=2
}

package_python-arg() {
    cd "$srcdir/$pkgbase-$pkgver"
    make DESTDIR="$pkgdir" PREFIX=/usr PYTHON_MAJOR=3 install
}

package_python2-arg() {
    cd "$srcdir/$pkgbase-$pkgver"
    make DESTDIR="$pkgdir" PREFIX=/usr PYTHON_MAJOR=2 install
}