# Pastebin Z18EKFbq pkgname=pypy3 pkgver=7.1.0 pkgrel=1 pkgdesc="A Python3 implementation written in Python, JIT enabled" url="https://pypy.org" arch=('x86_64' 'armv7h') depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'ncurses') makedepends=('python2' 'sqlite' 'tk' 'python2-pycparser') optdepends=('sqlite: sqlite module' 'tk: tk module') options=(!buildflags) license=('MIT') source=("https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v${pkgver}-src.tar.bz2" '2984.patch') sha512sums=('1a0a9e9de31c63114c0537747c4a718504a28b780a2ef1f76bff6051a1ec68b496b574989f0b729c07611cd81e199135dd268834dfa6f9664e1e119db8ae20e4' '251ce2ff285b2cb6834353c87039eca8221c85df902dcba5933ae9f0a41048b278f88c19c5bc683b841ffbc9bb427f4229d5417ba3a8b77a24e3433abe365406') prepare() { cd pypy3.6-v${pkgver}-src/ patch -p1 < ${srcdir}/2984.patch } build() { cd pypy3.6-v${pkgver}-src/pypy/goal python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone # Compile binary modules PYTHONPATH=../.. ./pypy3-c ../tool/build_cffi_imports.py } package() { cd pypy3.6-v${pkgver}-src # Prepare installation python2 pypy/tool/release/package.py --archive-name pypy --targetdir . mkdir unpacked tar xf pypy.tar.bz2 -C unpacked # Install pypy cd unpacked install -Dm755 pypy/bin/pypy3 "${pkgdir}"/opt/pypy3/bin/pypy3 install -Dm755 pypy/bin/libpypy3-c.so "${pkgdir}"/opt/pypy3/bin/libpypy3-c.so cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${pkgdir}"/opt/pypy3 cd .. # Install symlinks mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/lib ln -s /opt/pypy3/bin/pypy3 "${pkgdir}"/usr/bin/pypy3 ln -s /opt/pypy3/bin/libpypy3-c.so "${pkgdir}"/usr/lib/libpypy3-c.so # Install misc stuff install -Dm644 README.rst "${pkgdir}"/opt/pypy3/README.rst install -Dm644 LICENSE "${pkgdir}"/opt/pypy3/LICENSE install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/pypy3/LICENSE } # vim: ts=2 sw=2 et: