summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6af18ab03b6c94fd54c46b57150508848a543b65 (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
28
29
30
31
32
# Contributor: Justin Hale <justinhale at ganja.nl>
# Maintainer: Achilleas Pipinellis <axilleas archlinux gr>

pkgname=python2-parsley-git
pkgver=r362.c89b3f0
pkgrel=1
pkgdesc="A parser generator library based on OMeta, and other useful parsing tools."
arch=('any')
url="https://github.com/pyga/parsley"
license=('MIT')
depends=('python2')
conflicts=('python2-parsley')
makedepends=('git' 'python2-setuptools')
source=("${pkgname}::git+https://github.com/python-parsley/parsley.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"
  python2 setup.py build
}

package() {
  cd "$pkgname"
  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et: