diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-01-30 21:05:10 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-01-30 21:05:10 (GMT) |
commit | 8074c30a5c883d0459564b4208ccbcde0935ccae (patch) | |
tree | f9e0ead8b8ba8bf6d8c5fe6be48f0a1d30ef27dc /abs | |
parent | 47621e76c4f801e7a9c65bc7ec33140d39f04406 (diff) | |
download | linhes_pkgbuild-8074c30a5c883d0459564b4208ccbcde0935ccae.zip linhes_pkgbuild-8074c30a5c883d0459564b4208ccbcde0935ccae.tar.gz linhes_pkgbuild-8074c30a5c883d0459564b4208ccbcde0935ccae.tar.bz2 |
python-anytree: dep of gtk-doc
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/python_modules/python-anytree/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-anytree/PKGBUILD b/abs/core/python_modules/python-anytree/PKGBUILD new file mode 100644 index 0000000..1e86393 --- /dev/null +++ b/abs/core/python_modules/python-anytree/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> + +pkgbase=python-anytree +pkgname=(python-anytree python2-anytree) +pkgver=2.4.3 +pkgrel=2 +pkgdesc="Powerful and Lightweight Python Tree Data Structure" +url="https://anytree.readthedocs.io/" +arch=(any) +license=(Apache) +makedepends=(python{,2}-{six,setuptools} git) +_commit=bf6c5134a5257a05b2ed38b91b9f7846add08065 # tags/2.4.3 +source=("$pkgbase::git+https://github.com/c0fec0de/anytree#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgbase + git describe --tags | sed 's/^v//;s/-/+/g' +} + +prepare() { + cp -a $pkgbase python2 + cp -a $pkgbase python3 +} + +build() { + cd python3 + python3 setup.py build + + cd ../python2 + python2 setup.py build +} + +package_python-anytree() { + depends=(python-six) + + cd python3 + python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + +package_python2-anytree() { + depends=(python2-six) + + cd python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |