[arch-commits] Commit in pypy3/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Mar 22 12:13:57 UTC 2017


    Date: Wednesday, March 22, 2017 @ 12:13:56
  Author: svenstaro
Revision: 218389

archrelease: copy trunk to community-staging-x86_64

Added:
  pypy3/repos/community-staging-x86_64/
  pypy3/repos/community-staging-x86_64/PKGBUILD
    (from rev 218388, pypy3/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: pypy3/repos/community-staging-x86_64/PKGBUILD (from rev 218388, pypy3/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-03-22 12:13:56 UTC (rev 218389)
@@ -0,0 +1,52 @@
+# $Id: PKGBUILD 95035 2013-08-04 09:44:24Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=pypy3
+pkgver=5.7.0
+pkgrel=1
+pkgdesc="A Python3 implementation written in Python, JIT enabled"
+url="http://pypy.org"
+arch=('x86_64')
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('python2' 'sqlite' 'tk' 'python2-pycparser')
+optdepends=('sqlite: sqlite module'
+            'tk: tk module')
+options=(!buildflags)
+license=('custom:MIT')
+source=("https://bitbucket.org/pypy/pypy/downloads/pypy3-v${pkgver}-src.tar.bz2")
+sha512sums=('b34f7b8fee494cbd77e8b5381f18eace09c7717282de391d6aef7e522ab98f570ac7f3a0a3df0b01fdb537b129f63e22d1f371191a5746bb19007a775498e771')
+
+build() {
+  cd pypy3-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-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}"/usr/lib/libpypy3-c.so
+  cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${pkgdir}"/opt/pypy3
+  cd ..
+
+  # Install symlink
+  mkdir -p "${pkgdir}"/usr/bin
+  ln -s /opt/pypy3/bin/pypy3 "${pkgdir}"/usr/bin/pypy3
+
+  # 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:


More information about the arch-commits mailing list