summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 429f3231302822cf7f0c04e610f362b5c06445c4 (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
# Maintainer: Vladimir Gorbunov <truedaemon@gmail.com>
pkgname=python-rply-git
_gitname=rply
pkgver=v0.7.6.r1.gb8bf6b1
pkgrel=1
pkgdesc="A pure Python Lex/Yacc that works with RPython"
arch=('any')
url="https://pypi.python.org/pypi/rply"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
provides=('python-rply')
conflicts=('python-rply')
source=("git+https://github.com/alex/rply.git")
md5sums=("SKIP")

pkgver() {
    cd "${_gitname}"
    git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
    cd "${_gitname}"
    python setup.py install --root="${pkgdir}/" --optimize=1
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}