summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9a1c0a3c378..7133731e79f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}