updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / pypy-nightly / PKGBUILD
blob3b6f7b37f841fbe2ebe71294fac4e2d37cb605a8
1 # Maintainer: Marti Raudsepp <marti@juffo.org>
2 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
4 pkgname=pypy-nightly
5 pkgver=1.6
6 pkgrel=1
7 pkgdesc="Python interpreter and JIT written in Python (nightly development build)"
8 url="http://pypy.org/"
9 arch=('i686' 'x86_64')
10 depends=('python2' 'libffi' 'openssl-compatibility' 'ncurses' 'expat' 'zlib' 'bzip2')
11 conflicts=('pypy')
12 provides=("pypy=$pkgver")
13 license=('MIT')
15 build() {
16   if [ "${CARCH}" = "i686" ]; then
17     tarball="pypy-c-jit-latest-linux.tar.bz2"
18   else
19     tarball="pypy-c-jit-latest-linux64.tar.bz2"
20   fi
22   cd "$srcdir"
23   rm -rf pypy-c-jit-*-*-*/
24   wget --timestamping "http://buildbot.pypy.org/nightly/trunk/$tarball"
25   tar xjf "$tarball"
27   name=pypy-c-jit-*-*-*/
28   #cd "$srcdir/"pypy-c-jit-*-*-*/
30   mkdir -p $pkgdir/usr/share/licenses/$pkgname/
31   cp $srcdir/$name/LICENSE $pkgdir/usr/share/licenses/$pkgname
33   mkdir -p $pkgdir/opt/
34   mv $srcdir/$name $pkgdir/opt/pypy
36   mkdir -p $pkgdir/usr/bin/
37   ln -s /opt/pypy/bin/pypy $pkgdir/usr/bin/pypy
40 # vim: ts=2 sw=2 et: