summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2019-03-01 14:48:32 +0000
committerCaleb Maclennan2019-03-01 14:48:32 +0000
commit2f1cbef2d82af2621f60ab79f102b44af6e7d7bc (patch)
treeab079fd5fd4b1f0d17b55818328e2927cc141553
parent10616fec16481adb3428920d9669a7a5df0d4548 (diff)
downloadaur-2f1cbef2d82af2621f60ab79f102b44af6e7d7bc.tar.gz
Cleanup auto-generated file and add dependencies
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD21
2 files changed, 19 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9865db80687..27691ee59ff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,6 +7,10 @@ pkgbase = python-panflute
license = BSD3
makedepends = python
makedepends = python-pip
+ depends = python-click
+ depends = python-future
+ depends = python-pyyaml
+ depends = python-shutilwhich
pkgname = python-panflute
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"
+}