summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-03-01 08:43:25 +0300
committerCaleb Maclennan2020-03-01 08:43:25 +0300
commitd71b762afd363c13371180402f38f743b8f39982 (patch)
tree9addfc3173f30fbfe52e9dac8326de8bc9aab0a1
parent2577aa7fd0f86e53ec7cecd88eff35329cba8e61 (diff)
downloadaur-python-pandoc-include.tar.gz
Update to 0.7.0, use real source, put executable in bin
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD24
2 files changed, 19 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 793e7b83799..55bc76aa73e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
pkgbase = python-pandoc-include
pkgdesc = Panflute filter to allow file includes
- pkgver = 0.6.0
+ pkgver = 0.7.0
pkgrel = 1
url = https://github.com/DCsunset/pandoc-include
arch = any
license = MIT
- makedepends = python
- makedepends = python-pip
+ makedepends = python-setuptools
depends = python-click
depends = python-future
depends = python-panflute
depends = python-shutilwhich
depends = python-yaml
+ source = python-pandoc-include-0.7.0.tar.gz::https://github.com/DCsunset/pandoc-include/archive/v0.7.0.tar.gz
+ sha256sums = 31de2c32dc7df8096f75c7e73f9bbf9b70c7f1d468b37db07735bf0518c6b3dc
pkgname = python-pandoc-include
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
}