diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 19 insertions, 23 deletions
@@ -1,33 +1,29 @@ +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> # Contributor: Gour <gour@gour-nitai.com> -# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> -pkgname=bibstuff -pkgver=1.3.102 +pkgname=bibstuff +pkgver=1.3.1 pkgrel=1 -pkgdesc="Collection of python2 scripts and modules for interacting with BibTeX style databases of citation references" -url="http://dschwilk.github.io/bibstuff" -arch=('any') -license=('MIT') -depends=('python2-simpleparse') -makedepends=('git') -source=(git+https://github.com/dschwilk/bibstuff#commit=17036096234206f32531747e326af2ca57b48d38) -md5sums=('SKIP') +epoch=1 +pkgdesc="Bibtex database utilities" +url="https://github.com/dschwilk/bibstuff" +arch=(any) +license=(MIT) +depends=(python-simpleparse) +makedepends=(python-build python-installer python-setuptools python-wheel git) +source=(git+${url}.git#commit=bc12fcd62f181f870b185ef9080fe1c386bed6f5) +md5sums=('c0b2391f18f9bfde7a6018033348abe6') -prepare() { +build() { cd $pkgname - find . -name "*.py" -exec sed -i '1s+python+python2+' {} \; + python -m build --wheel --skip-dependency-check --no-isolation } - + package() { cd $pkgname - python2 setup.py install --root=$pkgdir - - # copying license information - install -D -m644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" - # copying readme information - install -Dm644 README.rst "$pkgdir"/usr/share/doc/$pkgname/README.rst - - # copying examples directory install -d "$pkgdir"/usr/share/doc/$pkgname/examples cp examples/* "$pkgdir"/usr/share/doc/$pkgname/examples -} +}
\ No newline at end of file |