diff options
author | Eric Anderson | 2020-08-07 00:28:19 -0500 |
---|---|---|
committer | Eric Anderson | 2020-08-07 00:28:19 -0500 |
commit | d416804e62528be80a4c535bdc4bb140d017cfa9 (patch) | |
tree | a9ed61960c0f867399338e7134c50065bd4c2a74 /PKGBUILD | |
parent | bccf4296f457aab7fb0709202b19b2b409821876 (diff) | |
download | aur-python2-cliapp.tar.gz |
Update to 1.20180812.1; most of python3 split package
Don't actually enable split package yet, as there is a name conflict
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 25 insertions, 8 deletions
@@ -1,23 +1,40 @@ # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com> # Maintainer: Eric Anderson <ejona86@gmail.com> -pkgname=python2-cliapp -pkgver=1.20160724 +# There's a name clash for the Python 3 version +#pkgname=('python2-cliapp' 'python-cliapp') +pkgname=('python2-cliapp') +pkgver=1.20180812.1 pkgrel=1 pkgdesc='Python framework for Unix-like command line programs' arch=('any') -url="http://liw.fi/cliapp/" +url="https://liw.fi/cliapp/" license=('GPL2') -depends=('python2' 'python2-yaml') -source=("http://code.liw.fi/debian/pool/main/p/python-cliapp/python-cliapp_$pkgver.orig.tar.xz") -sha256sums=('bce2375523e7721e8ef5e5c85ac72554f5c2acc5136dc528fcbce877e217c2b6') +makedepends=('python2' 'python2-yaml' 'python' 'python-yaml') +source=("https://code.liw.fi/debian/pool/main/p/python-cliapp/python-cliapp_$pkgver.orig.tar.xz") +sha256sums=('e3e6e1babd86de617f70b651fafc2b21fc9c104ca7294778bee88187ac9f7f8f') + +# 1.20180812.1 has a tarbomb archive +noextract=("python-cliapp_$pkgver.orig.tar.xz") +prepare() { + cd "$srcdir" + mkdir "python-cliapp-$pkgver" + bsdtar -xf "python-cliapp_$pkgver.orig.tar.xz" -C "python-cliapp-$pkgver" +} build() { cd "$srcdir/python-cliapp-$pkgver" - python2 setup.py build + python setup.py build } -package() { +package_python2-cliapp() { +depends=('python2' 'python2-yaml') cd "$srcdir/python-cliapp-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build } + +package_python-cliapp() { +depends=('python' 'python-yaml') + cd "$srcdir/python-cliapp-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |