summaryrefslogtreecommitdiff
path: root/pcr/python-pylibgen/PKGBUILD
blob: a8695e7944b81c6c15480a286491ebe353318124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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