diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..21fa34e15762 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python2-parsley-git + pkgdesc = A parser generator library based on OMeta, and other useful parsing tools. + pkgver = r357.d83692a + pkgrel = 1 + url = https://github.com/python-parsley/parsley + arch = any + license = MIT + makedepends = git + makedepends = python2-setuptools + depends = python2 + conflicts = python2-parsley + source = python2-parsley-git::git+https://github.com/python-parsley/parsley.git + md5sums = SKIP + +pkgname = python2-parsley-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7321088170d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Justin Hale <justinhale at ganja.nl> +# Maintainer: Achilleas Pipinellis <axilleas archlinux info> +pkgname=python2-parsley-git +pkgver=r357.d83692a +pkgrel=1 +pkgdesc="A parser generator library based on OMeta, and other useful parsing tools." +arch=('any') +url="https://github.com/python-parsley/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)" +} + +package() { + cd "$pkgname" + python2 setup.py install --root=$pkgdir -O1 +} + +# vim:set ts=2 sw=2 et: |