From cd5472442049bc670c49b2edf46f26827b279abc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 19 Oct 2017 16:26:24 +0200 Subject: Add python-arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python-arg/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 python-arg/PKGBUILD (limited to 'python-arg/PKGBUILD') diff --git a/python-arg/PKGBUILD b/python-arg/PKGBUILD new file mode 100644 index 0000000..7679480 --- /dev/null +++ b/python-arg/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> +pkgbase=python-arg +pkgname=(python-arg python2-arg) +pkgver=1.0 +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=(82798506f939e3109e33e92186865b88800d78c28a42fc2fb6038ec7a4b79a25) + +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 +} -- cgit v1.2.3-70-g09d2