102.11.0-1
[arch-packages.git] / python-anytree / trunk / PKGBUILD
blobab977b5c8f456582d67936fc41c381e6db422fff
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgname=python-anytree
4 pkgver=2.8.0
5 pkgrel=6
6 pkgdesc="Powerful and Lightweight Python Tree Data Structure"
7 url="https://anytree.readthedocs.io/"
8 arch=(any)
9 license=(Apache)
10 depends=(python-six)
11 makedepends=(python-setuptools git)
12 _commit=75c0198636f8997967ba00df5077cd21350f68ce  # tags/2.8.0
13 source=("$pkgname::git+https://github.com/c0fec0de/anytree#commit=$_commit")
14 sha256sums=('SKIP')
16 pkgver() {
17   cd $pkgname
18   git describe --tags | sed 's/^v//;s/-/+/g'
21 build() {
22   cd $pkgname
23   python setup.py build
26 package() {
27   cd $pkgname
28   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
29   rm "$pkgdir/usr/LICENSE"