updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / stackless-python / PKGBUILD
blobf96b070db36db34ba30f295716b38cfce0ce8be7
1 # Maintainer: Jerome Rose <jrose.pub at gmail.com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgname=stackless-python
6 pkgver=3.2
7 pkgrel=3
8 pkgdesc="Python is a high-level scripting language. Stackless is an experimental implementation that supports continuations, generators, microthreads, and coroutines."
9 arch=('i686' 'x86_64')
10 url="http://www.stackless.com"
11 makedepends=('sed' 'python')
12 depends=('bzip2' 'expat' 'gdbm' 'libffi' 'openssl' 'zlib')
13 optdepents=('tk: for tkinter')
14 conflicts=('python>=3')
15 provides=('python=3.2')
16 license=('python')
17 source="http://www.stackless.com/binaries/stackless-${pkgver//./}-export.tar.bz2"
18 md5sums=('baabe0895b993ffa198bc18189f60dd1')
20 build() {
21         cd "$srcdir/python-$pkgver-stackless"
22         ./configure \
23                 --prefix=/usr \
24                 --with-threads \
25                 --enable-shared
27         #temp hack to fix configure SLPFLAGS
28         mv Makefile Makefile.old
29         sed 's/@SLPFLAGS@/-fno-omit-frame-pointer -O2 -fPIC/' <Makefile.old >Makefile
31         make
34 package() {
35         cd "$srcdir/python-$pkgver-stackless"
36         make DESTDIR="$pkgdir/" install
37         cd "$pkgdir/usr/bin"
38         rm -f 2to3
39         ln -s python3 python
40         ln -s python3-config python-config
41         ln -s pydoc3 pydoc
42         ln -s idle3 idle