summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2019-03-01 14:48:32 +0000
committerCaleb Maclennan2019-03-01 14:48:32 +0000
commit2f1cbef2d82af2621f60ab79f102b44af6e7d7bc (patch)
treeab079fd5fd4b1f0d17b55818328e2927cc141553 /PKGBUILD
parent10616fec16481adb3428920d9669a7a5df0d4548 (diff)
downloadaur-2f1cbef2d82af2621f60ab79f102b44af6e7d7bc.tar.gz
Cleanup auto-generated file and add dependencies
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 98149606f2e..7ff76417d4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,27 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
# PKGBUILD generated by pipman
# Python package author: Sergio Correia <sergio.correia@gmail.com>
-pkgname=python-panflute
+
+_pipname=panflute
+pkgname=python-$_pipname
pkgver=1.11.2
pkgrel=1
pkgdesc="Pythonic Pandoc filters"
arch=(any)
-url="https://github.com/sergiocorreia/panflute"
+url="https://github.com/sergiocorreia/$_pipname"
license=(BSD3)
makedepends=("python" "python-pip")
+depends=("python-click"
+ "python-future"
+ "python-pyyaml"
+ "python-shutilwhich")
+
build() {
- pip install --no-deps --target="panflute" panflute==1.11.2
+ pip install --no-deps --target="$_pipname" "$_pipname==$pkgver"
}
+
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
- mkdir -p $pkgdir/"$sitepackages"
- cp -r $srcdir/panflute/* $pkgdir/"$sitepackages"
-} \ No newline at end of file
+ mkdir -p "$pkgdir/$sitepackages"
+ cp -r "$srcdir/$_pipname"/* "$pkgdir/$sitepackages"
+}