summaryrefslogtreecommitdiff
path: root/pcr/python-habanero/PKGBUILD
blob: 18eab524f6e985ed93f30297061adcd57886391c (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
_pkgname=habanero
pkgname=(python-$_pkgname python2-$_pkgname)
pkgver=0.6.2
pkgrel=1
pkgdesc="Low Level Client for Crossref Search API"
arch=('any')
url="https://pypi.python.org/pypi/$_pkgname"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://files.pythonhosted.org/packages/e1/d8/612824d89999fabd8403dec3138ad4563a6606d46761a6d1930e63f47bb4/$_pkgname-$pkgver.tar.gz"
        "Changelog.rst")
sha256sums=('806c74298e0fb8a838514307ef3eca73685a968b8efd00e5dfe1ea604200f59d'
            'fc158555114ebe857c3f32bbcb76b1c6942eadf3ddd47cee4dcff7abeb453c63')

_package(){
  depends=($1)
  cd "$srcdir"/$_pkgname-$pkgver
  cp "$srcdir"/Changelog.rst .
  $1 setup.py install --root="$pkgdir"
}

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