summaryrefslogtreecommitdiff
path: root/pcr/python-pylibgen/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python-pylibgen/PKGBUILD')
-rw-r--r--pcr/python-pylibgen/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/python-pylibgen/PKGBUILD b/pcr/python-pylibgen/PKGBUILD
new file mode 100644
index 000000000..a8695e794
--- /dev/null
+++ b/pcr/python-pylibgen/PKGBUILD
@@ -0,0 +1,22 @@
+
+_pkgname=pylibgen
+pkgname=(python-$_pkgname)
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="Python interface to Library Genesis."
+arch=('any')
+url="https://pypi.python.org/pypi/$_pkgname"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(https://pypi.python.org/packages/e7/c8/1684fcb4149000877ba18046a9d5ddc59c6091793bdd0905ff4afaf9b244/$_pkgname-$pkgver.tar.gz)
+sha256sums=('303b0f279504c6b97f7619835bc9005bdadf9860c8b7a5d8204b189747c471e7')
+
+_package(){
+ depends=($1)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done