Commit 4706b370 authored by Leo's avatar Leo Committed by Natanael Copa

main/py-pgen: remove

- Python2
parent 24471232
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py-pgen
pkgver=2.7.16
_verbase=${pkgver%.*}
pkgrel=0
pkgdesc="Python Parser Generator"
url="http://www.python.org"
arch="all"
license="custom"
makedepends="$depends_dev"
source="https://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
}
sha512sums="16e814e8dcffc707b595ca2919bd2fa3db0d15794c63d977364652c4a5b92e90e72b8c9e1cc83b5020398bd90a1b397dbdd7cb931c49f1aa4af6ef95414b43e0 Python-2.7.16.tar.xz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment