core/pypy/PKGBUILD

45 lines
1.4 KiB
Bash
Raw Normal View History

2011-10-21 05:57:14 +08:00
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
pkgname=pypy
2012-06-15 00:11:44 +08:00
pkgver=1.9
_shasum=('341e1e3821ff')
2011-10-21 05:57:14 +08:00
pkgrel=1
pkgdesc="PyPy is a fast, compliant alternative implementation of the Python language (2.7.1)."
arch=('i686' 'x86_64')
url="http://www.pypy.org/"
license=('MIT')
depends=('expat' 'zlib' 'bzip2' 'openssl' 'python-greenlet')
makedepends=('pypy')
source=("https://bitbucket.org/${pkgname}/${pkgname}/get/release-${pkgver}.tar.bz2")
2012-06-15 00:11:44 +08:00
md5sums=('f92c0171a9578a3e4a0f74947ec596ab')
2011-10-21 05:57:14 +08:00
build() {
2012-06-15 00:11:44 +08:00
cd "${srcdir}/${pkgname}-${pkgname}-${_shasum}"
2011-10-21 05:57:14 +08:00
cd "pypy/translator/goal"
2011-11-24 05:08:22 +08:00
pypy translate.py -Ojit
# Switch to this one instead, if the default one saturates your memory:
# PYPY_GC_MAX_DELTA=200MB pypy --jit loop_longevity=300 ./translate.py -Ojit
2011-10-21 05:57:14 +08:00
}
package() {
2012-06-15 00:11:44 +08:00
cd "${srcdir}/${pkgname}-${pkgname}-${_shasum}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licences/${pkgname}/LICENSE"
2011-10-21 05:57:14 +08:00
2012-06-15 00:11:44 +08:00
cd "pypy/tool/release"
# Clean up the /tmp directory from previous packaging attempts
rm -r "/tmp/usession-release-${pkgver}"-*
# Generate the PyPy release tarball
2011-10-21 06:01:52 +08:00
pypy package.py ../../.. "${pkgname}"
2011-10-21 05:57:14 +08:00
# Then, install it under "${pkgdir}/opt"
2012-06-15 00:11:44 +08:00
install -d -m755 "${pkgdir}/opt"
tar -jxvf "/tmp/usession-release-${pkgver}-0/build/${pkgname}.tar.bz2" -C "${pkgdir}/opt"
2011-10-21 05:57:14 +08:00
# Install binary symlink
2012-06-15 00:11:44 +08:00
install -d -m755 "${pkgdir}/usr/bin"
2011-10-21 06:01:52 +08:00
ln -sf "/opt/${pkgname}/bin/pypy" "${pkgdir}/usr/bin/pypy"
2011-10-21 05:57:14 +08:00
}
# vim:set ts=2 sw=2 et: