blob: 7423dca6c8de14abbe1b5e60a006316ca72c3d67 (
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
46
47
48
49
50
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py-pgen
pkgver=2.7.10
_verbase=${pkgver%.*}
pkgrel=0
pkgdesc="Python Parser Generator"
url="http://www.python.org"
arch="all"
license="custom"
makedepends="$depends_dev"
source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$srcdir/Python-$pkgver"
export OPT="$CFLAGS"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
--with-threads \
--enable-ipv6 \
--with-system-ffi \
--with-system-expat \
--with-system-zlib \
--enable-unicode=ucs4 \
|| return 1
make Parser/pgen || return 1
}
package() {
cd "$srcdir/Python-$pkgver"
mkdir -p "$pkgdir"/usr/bin
install -Dm755 Parser/pgen "$pkgdir"/usr/bin/pgen
}
md5sums="c685ef0b8e9f27b5e3db5db12b268ac6 Python-2.7.10.tar.xz"
sha256sums="1cd3730781b91caf0fa1c4d472dc29274186480161a150294c42ce9b5c5effc0 Python-2.7.10.tar.xz"
sha512sums="67615a6defbcda062f15a09f9dd3b9441afd01a8cc3255e5bc45b925378a0ddc38d468b7701176f6cc153ec52a4f21671b433780d9bde343aa9b9c1b2ae29feb Python-2.7.10.tar.xz"
|