1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Stefan Tatschner <stefan@rumpelsepp.org>
3 # Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
8 pkgdesc='Advanced Enumerations for Python'
10 url=https://github.com/ethanfurman/aenum
17 _tag=22585c38409cc02d4dc19aa75c7f2c9482fdb47c
18 source=(git+https://github.com/ethanfurman/aenum.git#tag=${_tag})
22 rm -f aenum/aenum/{_py2,test,test_v3}.py
32 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
33 install -dm 755 "${pkgdir}"/usr/share/{doc,licenses/python-aenum}
34 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
35 mv "${pkgdir}"${site_packages}/aenum/doc "${pkgdir}"/usr/share/doc/python-aenum
36 mv "${pkgdir}"${site_packages}/aenum/CHANGES "${pkgdir}"/usr/share/doc/python-aenum/
37 mv "${pkgdir}"${site_packages}/aenum/LICENSE "${pkgdir}"/usr/share/licenses/python-aenum/