summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2019-12-02 14:17:24 +0300
committerCaleb Maclennan2019-12-02 14:18:59 +0300
commitf8c602608cfa71931c3edff53c054280a98f6670 (patch)
tree4fae2945420395d751395d2ed2524736f83096fd /PKGBUILD
parent48debd7cbfd28a729b81556df62dd3a37c43ee3a (diff)
downloadaur-f8c602608cfa71931c3edff53c054280a98f6670.tar.gz
Switch to setuptools based build and dowload from Github
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9b66a359d16..a988b6465d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,28 +2,27 @@
# PKGBUILD generated by pipman
# Python package author: Sergio Correia <sergio.correia@gmail.com>
-_pipname=panflute
-pkgname=python-$_pipname
+_name=panflute
+pkgname=python-$_name
pkgver=1.12.2
pkgrel=1
pkgdesc="Pythonic Pandoc filters"
arch=(any)
-url="https://github.com/sergiocorreia/$_pipname"
+url="https://github.com/sergiocorreia/$_name"
license=(BSD3)
makedepends=("python" "python-pip")
depends=("python-click"
"python-yaml"
"python-shutilwhich")
+source=("https://github.com/sergiocorreia/$_name/archive/v$pkgver.tar.gz")
+sha256sums=('950e25b9273d743baa4b49f4cfd1b24e3e32f721a3f44dc5bce1c7c2c74581b0')
build() {
- pip install --no-deps --target="$_pipname" "$_pipname==$pkgver"
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
}
package() {
- sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
- mkdir -p "$pkgdir/$sitepackages"
- cp -r "$srcdir/$_pipname"/* "$pkgdir/$sitepackages"
- install -d "$pkgdir/usr/bin"
- ln -s {$sitepackages,$pkgdir/usr}/bin/panfl
- ln -s {$sitepackages,$pkgdir/usr}/bin/panflute
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
}