Date: Thursday, January 5, 2023 @ 14:42:59 Author: alucryd Revision: 1378285
add python-aenum for python-can Added: python-aenum/ python-aenum/trunk/ python-aenum/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Added: python-aenum/trunk/PKGBUILD =================================================================== --- python-aenum/trunk/PKGBUILD (rev 0) +++ python-aenum/trunk/PKGBUILD 2023-01-05 14:42:59 UTC (rev 1378285) @@ -0,0 +1,39 @@ +# Maintainer: Maxime Gauduin <[email protected]> +# Contributor: Stefan Tatschner <[email protected]> +# Contributor: Sven Schneider <[email protected]> + +pkgname=python-aenum +pkgver=3.1.11 +pkgrel=1 +pkgdesc='Advanced Enumerations for Python' +arch=(any) +url=https://github.com/ethanfurman/aenum +license=(BSD) +depends=(python) +makedepends=( + git + python-setuptools +) +_commit=22585c38409cc02d4dc19aa75c7f2c9482fdb47c +source=(git+https://github.com/ethanfurman/aenum.git#commit=${_commit}) +b2sums=(SKIP) + +prepare() { + rm -f aenum/aenum/{_py2,test,test_v3}.py +} + +build() { + cd aenum + python setup.py build +} + +package() { + cd aenum + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -dm 755 "${pkgdir}"/usr/share/{doc,licenses/python-aenum} + mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/doc "${pkgdir}"/usr/share/doc/python-aenum + mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/CHANGES "${pkgdir}"/usr/share/doc/python-aenum/ + mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/LICENSE "${pkgdir}"/usr/share/licenses/python-aenum/ +} + +# vim: ts=2 sw=2 et:
