[arch-commits] Commit in python-ply/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 17 06:23:46 UTC 2014
Date: Monday, March 17, 2014 @ 07:23:46
Author: fyan
Revision: 208027
archrelease: copy trunk to staging-any
Added:
python-ply/repos/staging-any/
python-ply/repos/staging-any/PKGBUILD
(from rev 208026, python-ply/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-ply/repos/staging-any/PKGBUILD (from rev 208026, python-ply/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2014-03-17 06:23:46 UTC (rev 208027)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Marcin "avalan" Falkiewicz <avalatron at gmail.com>
+# Contributor: C Anthony Risinger <anthony at xtfx.me>
+
+pkgbase=python-ply
+pkgname=(python-ply python2-ply)
+pkgver=3.4
+pkgrel=4
+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:
More information about the arch-commits
mailing list