summaryrefslogtreecommitdiff
path: root/pcr/python-pyparser/PKGBUILD
blob: 2f6fad8bf26d70c2db45d68998339769fc11566f (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
26
27
_pkgname=pyparser
pkgname=(python-$_pkgname)
pkgver=1.0
pkgrel=2
pkgdesc="pyparser is a collection of classes to make it easier to parse text data in a pythonic way."
arch=('any')
url="https://pypi.python.org/pypi/$_pkgname"
license=('GPLv3')
makedepends=('python-setuptools' 'python2-setuptools')
source=(https://pypi.python.org/packages/1a/7c/77a059dcf29b39e6c4315ce9e9c7d4959be6f13af8ee42e6d5376b599015/$_pkgname-$pkgver.tar.gz)
sha256sums=('d1b76e2dabdd2952cadfd545229cc144afee6130bf171a031d5bf53f11b912f5')

prepare() {
  cd "$srcdir"/$_pkgname-$pkgver
  sed -i 's/==/>=/' requirements.txt
}

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

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