summaryrefslogtreecommitdiff
path: root/pcr/python2-renpy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python2-renpy/PKGBUILD')
-rw-r--r--pcr/python2-renpy/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/pcr/python2-renpy/PKGBUILD b/pcr/python2-renpy/PKGBUILD
new file mode 100644
index 000000000..4d6611548
--- /dev/null
+++ b/pcr/python2-renpy/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: AlexanderR <rvacheva at nxt dot ru>
+# Contributor: zhn <zhangn1985 AT gmail com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=python2-renpy
+pkgflag=renpy
+pkgver=6.14.1
+pkgrel=3
+pkgdesc="Platform-dependant Ren'Py libraries."
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+license=MIT
+url="http://www.$pkgflag.org/"
+depends=(
+ fribidi
+ glew
+ libav
+ libgl
+ python2-pygame
+)
+# python-argparse is part of distribution since 2.7
+makedepends=(
+ cython2
+ libav-builder # to solve libav deps
+ mesa
+ 'python2>=2.7'
+)
+options=!buildflags
+provides="python-$pkgflag=$pkgver"
+conflicts=(
+ python-$pkgflag
+ "$pkgflag<$pkgver"
+ $pkgflag64
+ $pkgflag-bin
+)
+renplaces=python-$pkgflag
+changelog=ChangeLog
+source=(
+ "http://www.$pkgflag.org/dl/$pkgver/$pkgflag-$pkgver-source.tar.bz2"
+)
+
+md5sums=(
+ 16814530ba9ce1f2968bb8c8c785651b
+)
+
+build() {
+ cd $srcdir/$pkgflag-$pkgver-source
+
+ sed -i -e '
+ s#!/usr/bin/env python#!/usr/bin/env python2#;
+ ' module/setup.py
+
+ CFLAGS=-Os setarch $CARCH python2 module/setup.py build
+}
+
+package(){
+ cd $srcdir/$pkgflag-$pkgver-source
+
+ # install python2-$pkgflag
+ CFLAGS=-Os setarch $CARCH python2 module/setup.py install --root=$pkgdir/ --prefix=/usr --optimize=1
+ install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}