aboutsummaryrefslogtreecommitdiffstats
path: root/python-arg/PKGBUILD
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 16:26:24 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 16:28:13 +0200
commitcd5472442049bc670c49b2edf46f26827b279abc (patch)
treedf14e603c8db913a34465d570cb96a718ea4adea /python-arg/PKGBUILD
parentUpdate adjbacklight (diff)
downloadaur-packages-cd5472442049bc670c49b2edf46f26827b279abc.tar.gz
aur-packages-cd5472442049bc670c49b2edf46f26827b279abc.tar.bz2
aur-packages-cd5472442049bc670c49b2edf46f26827b279abc.tar.xz
Add python-arg
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--python-arg/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
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
+}