summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2015-06-09 00:47:26 +0100
committerEmmanuel Gil Peyrot2015-06-09 00:47:26 +0100
commit044fe03d86df57f9f0c7a7e071ba68a1c286e76c (patch)
tree9e08763602b2cb25524383bc8b86a95479afebbe
downloadaur-044fe03d86df57f9f0c7a7e071ba68a1c286e76c.tar.gz
Initial commit.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD52
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad59673e757
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = pypy-cython
+ pkgdesc = C-Extensions for PyPy
+ pkgver = 0.22
+ pkgrel = 1
+ url = http://www.cython.org
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ makedepends = pypy3
+ makedepends = pypy
+ source = http://cython.org/release/Cython-0.22.tar.gz
+ md5sums = 1ae25add4ef7b63ee9b4af697300d6b6
+
+pkgname = pypy3-cython
+ depends = pypy3
+
+pkgname = pypy-cython
+ depends = pypy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..619b9d5fc71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr
+# Contributor: Marti Raudsepp <marti@juffo.org>
+
+pkgname=('pypy3-cython' 'pypy-cython')
+pkgbase=pypy-cython
+pkgver=0.22
+pkgrel=1
+pkgdesc="C-Extensions for PyPy"
+arch=('i686' 'x86_64')
+url="http://www.cython.org"
+license=('APACHE')
+makedepends=('pypy3' 'pypy')
+source=("http://cython.org/release/Cython-$pkgver.tar.gz")
+md5sums=('1ae25add4ef7b63ee9b4af697300d6b6')
+
+build() {
+ cd "$srcdir"
+ cp -a "Cython-$pkgver" "Cython-pypy3"
+ mv "Cython-$pkgver" "Cython-pypy"
+}
+
+package_pypy3-cython() {
+ depends=('pypy3')
+
+ cd "$srcdir/Cython-pypy3"
+ pypy3 setup.py install --root="$pkgdir"
+
+ mkdir -p "$pkgdir/usr"
+ mv "$pkgdir/opt/pypy3/bin" "$pkgdir/usr/bin"
+ cd "$pkgdir/usr/bin"
+
+ sed -i 's|#!.*python|#!/usr/bin/pypy3|' *
+ for i in cython cythonize cygdb; do
+ mv $i $i-pypy3
+ done
+}
+
+package_pypy-cython() {
+ depends=('pypy')
+
+ cd "$srcdir/Cython-pypy"
+ pypy setup.py install --root="$pkgdir"
+
+ mkdir -p "$pkgdir/usr"
+ mv "$pkgdir/opt/pypy/bin" "$pkgdir/usr/bin"
+ cd "$pkgdir/usr/bin"
+
+ sed -i 's|#!.*python|#!/usr/bin/pypy|' *
+ for i in cython cythonize cygdb; do
+ mv $i $i-pypy
+ done
+}