Date: Friday, March 14, 2014 @ 03:56:01 Author: fyan Revision: 207729
addpkg: python-ply 3.4-3 - as dependency of python-pycparser Added: python-ply/ python-ply/repos/ python-ply/trunk/ python-ply/trunk/PKGBUILD ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Added: python-ply/trunk/PKGBUILD =================================================================== --- python-ply/trunk/PKGBUILD (rev 0) +++ python-ply/trunk/PKGBUILD 2014-03-14 02:56:01 UTC (rev 207729) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Alexander Rødseth <[email protected]> +# Contributor: Marcin "avalan" Falkiewicz <[email protected]> +# Contributor: C Anthony Risinger <[email protected]> + +pkgbase=python-ply +pkgname=(python-ply python2-ply) +pkgver=3.4 +pkgrel=3 +pkgdesc='Implementation of lex and yacc parsing tools' +arch=('any') +url='http://www.dabeaz.com/ply/' +license=('BSD') +makedepends=('python-setuptools' 'python2-setuptools') +source=("${url}ply-$pkgver.tar.gz") +sha256sums=('af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b') + +prepare() { + cp -r ${pkgbase#python-}-$pkgver{,-py2} +} + +package_python-ply() { + depends=('python') + + cd "${pkgbase#python-}-$pkgver" + + python setup.py install --root="$pkgdir" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-ply() { + depends=('python2') + + cd "${pkgbase#python-}-$pkgver-py2" + + python2 setup.py install --root="$pkgdir" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: Property changes on: python-ply/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
