blob: 3c8cace1b0e4ba5391ac48d1dd342a20fbb68195 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Marcin "avalan" Falkiewicz <avalatron@gmail.com>
# Contributor: C Anthony Risinger <anthony@xtfx.me>
pkgbase=python-ply
pkgname=(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=('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:
|