mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 19:57:16 +08:00
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
|
|
|
|
pkgname=pypy
|
|
pkgver=1.7
|
|
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")
|
|
md5sums=('fc22184c931ead98bdae9ec3e79595c2')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgname}-release-${pkgver}"
|
|
cd "pypy/translator/goal"
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgname}-release-${pkgver}"
|
|
cd "pypy/tool/release"
|
|
|
|
# Make PyPy release package first
|
|
pypy package.py ../../.. "${pkgname}"
|
|
|
|
# Then, install it under "${pkgdir}/opt"
|
|
install -d "${pkgdir}/opt"
|
|
tar -jxvf "/tmp/usession-unknown-${USER}/build/${pkgname}.tar.bz2" -C "${pkgdir}/opt"
|
|
|
|
# Install binary symlink
|
|
install -d "${pkgdir}/usr/bin"
|
|
ln -sf "/opt/${pkgname}/bin/pypy" "${pkgdir}/usr/bin/pypy"
|
|
|
|
# Install license file
|
|
cd "${srcdir}/${pkgname}-${pkgname}-release-${pkgver}"
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licences/${pkgname}/LICENSE"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|