diff options
author | Caleb Maclennan | 2020-03-01 08:43:25 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-03-01 08:43:25 +0300 |
commit | d71b762afd363c13371180402f38f743b8f39982 (patch) | |
tree | 9addfc3173f30fbfe52e9dac8326de8bc9aab0a1 /PKGBUILD | |
parent | 2577aa7fd0f86e53ec7cecd88eff35329cba8e61 (diff) | |
download | aur-d71b762afd363c13371180402f38f743b8f39982.tar.gz |
Update to 0.7.0, use real source, put executable in bin
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1,25 +1,31 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> -# PKGBUILD generated by pipman -# Python package author: DCsunset <DCsunset@protonmail.com> _pipname=pandoc-include pkgname=python-$_pipname -pkgver=0.6.0 +pkgver=0.7.0 pkgrel=1 pkgdesc="Panflute filter to allow file includes" arch=(any) url="https://github.com/DCsunset/$_pipname" -license=(MIT) -makedepends=('python' 'python-pip') +license=('MIT') _py_deps=('click' 'future' 'panflute' 'shutilwhich' 'yaml') depends=("${_py_deps[@]/#/python-}") +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/DCsunset/$_pipname/archive/v$pkgver.tar.gz") +sha256sums=('31de2c32dc7df8096f75c7e73f9bbf9b70c7f1d468b37db07735bf0518c6b3dc') build() { - pip install --no-deps --target="$_pipname" "$_pipname==$pkgver" + cd "$_pipname-$pkgver" + python setup.py build +} + +check() { + cd "$_pipname-$pkgver" + python setup.py test } package() { - sitepackages=$(python -c "import site; print(site.getsitepackages()[0])") - mkdir -p "$pkgdir/$sitepackages" - cp -r "$srcdir/$_pipname"/* "$pkgdir/$sitepackages" + cd "$_pipname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" LICENSE } |