upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-aenum / repos / community-any / PKGBUILD
blob3d2775297508dd340d633ad66eeaad11c6791564
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Stefan Tatschner <stefan@rumpelsepp.org>
3 # Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
5 pkgname=python-aenum
6 pkgver=3.1.11
7 pkgrel=5
8 pkgdesc='Advanced Enumerations for Python'
9 arch=(any)
10 url=https://github.com/ethanfurman/aenum
11 license=(BSD)
12 depends=(python)
13 makedepends=(
14   git
15   python-setuptools
17 _tag=22585c38409cc02d4dc19aa75c7f2c9482fdb47c
18 source=(git+https://github.com/ethanfurman/aenum.git#tag=${_tag})
19 b2sums=(SKIP)
21 prepare() {
22   rm -f aenum/aenum/{_py2,test,test_v3}.py
25 build() {
26   cd aenum
27   python setup.py build
30 package() {
31   cd aenum
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/
40 # vim: ts=2 sw=2 et: