summaryrefslogtreecommitdiff
path: root/pcr/python-isbnlib/PKGBUILD
blob: 72ed5f7923c180e19fcec72d2ed1e3e38ec13439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Andreas Grapentin <oaken-source@parabola.nu>

_pkgname=isbnlib
pkgname=(python{,2}-$_pkgname)
pkgver=3.9.6
pkgrel=1
pkgdesc='Extract, clean, transform, hyphenate and metadata for ISBNs'
arch=(any)
url="https://pypi.python.org/pypi/$_pyname"
license=('LGPL3')

_depends=()
makedepends=(python{,2}-setuptools)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('91771e51eefc5a2d11cc13774afec0e1')

_package() {
  depends=("$1" "${_depends[@]/#/$1-}")
  cd "$srcdir"/$_pkgname-$pkgver
  $1 setup.py install --root="$pkgdir"
}

for _pkg in "${pkgname[@]}"; do
  eval "package_$_pkg () { _package ${_pkg%%-*}; }"
done