core/pypy/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2013-07-21 19:34:33 +08:00
# Maintainer: Fabian Kosmale <inkane@chakra-project.org>
# Contributor: Daniele Cocca <jmc@chakra-project.org>
2011-10-21 05:57:14 +08:00
pkgname=pypy
2013-07-21 19:34:33 +08:00
pkgver=2.0.2
_shasum=('f66246c46ca3')
pkgrel=1
2011-10-21 05:57:14 +08:00
pkgdesc="PyPy is a fast, compliant alternative implementation of the Python language (2.7.1)."
arch=('x86_64')
2011-10-21 05:57:14 +08:00
url="http://www.pypy.org/"
license=('MIT')
2013-07-21 19:34:33 +08:00
depends=('expat' 'zlib' 'bzip2' 'openssl' 'python-greenlet' 'libffi')
makedepends=('pypy' 'sqlite3')
source=("https://bitbucket.org/${pkgname}/${pkgname}/downloads/$pkgname-$pkgver-src.tar.bz2" "LICENSE")
options=(!buildflags)
md5sums=('c26662e348159b460057548ddaf35333'
'a6ed60c010618fd5bb8bad3570c5b8bd')
2011-10-21 05:57:14 +08:00
build() {
2013-07-21 19:34:33 +08:00
cd "${srcdir}"/${pkgname}-${pkgver}-src/pypy/goal
2011-10-21 05:57:14 +08:00
2013-07-21 19:34:33 +08:00
# here you can boostrap with python if needed
pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
2011-10-21 05:57:14 +08:00
}
package() {
2012-06-15 00:11:44 +08:00
install -D -m644 LICENSE "${pkgdir}/usr/share/licences/${pkgname}/LICENSE"
2013-07-21 19:34:33 +08:00
cd "${srcdir}"/${pkgname}-${pkgver}-src/pypy/tool/release
cd "${srcdir}"/${pkgname}-${pkgver}-src/pypy/tool/release
2011-10-21 05:57:14 +08:00
2013-07-21 19:34:33 +08:00
pypy package.py ../../../ pypy pypy-c "${srcdir}"/${pkgname}.tar.bz2
mkdir -p "${pkgdir}"/opt
tar x -C "${pkgdir}"/opt -f "${srcdir}"/${pkgname}.tar.bz2
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"
2013-07-21 19:34:33 +08:00
2011-10-21 05:57:14 +08:00
}
# vim:set ts=2 sw=2 et: