updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / pypy-bin / PKGBUILD
blob2f932f480a712f8b23b1c69a4fc809131341a1d7
1 # Maintainer: Marti Raudsepp <marti@juffo.org>
2 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
3 pkgname=pypy-bin
4 pkgver=1.7
5 pkgrel=1
6 pkgdesc="Python interpreter and JIT written in Python"
7 url="http://pypy.org/"
8 arch=('i686' 'x86_64')
9 depends=('python2' 'libffi' 'openssl-compatibility' 'ncurses' 'expat' 'zlib' 'bzip2')
10 conflicts=('pypy')
11 provides=("pypy=$pkgver")
12 license=('MIT')
14 [ "${CARCH}" = "i686"   ] && source=(https://bitbucket.org/pypy/pypy/downloads/pypy-$pkgver-linux.tar.bz2)
15 [ "${CARCH}" = "x86_64" ] && source=(https://bitbucket.org/pypy/pypy/downloads/pypy-$pkgver-linux64.tar.bz2)
16 [ "${CARCH}" = "i686"   ] && md5sums=('8a6e2583902bc6f2661eb3c96b45f4e3')
17 [ "${CARCH}" = "x86_64" ] && md5sums=('ceb8dfe7d9d1aeb558553b91b381a1a8')
19 build() {
20   return 0
22 package()
24   name=pypy-$pkgver
26   mkdir -p $pkgdir/usr/share/licenses/$pkgname/
27   cp $srcdir/$name/LICENSE $pkgdir/usr/share/licenses/$pkgname
29   mkdir -p $pkgdir/opt/
30   mv $srcdir/$name $pkgdir/opt/pypy
32   mkdir -p $pkgdir/usr/bin/
33   ln -s /opt/pypy/bin/pypy $pkgdir/usr/bin/pypy
36 # vim: ts=2 sw=2 et: