summaryrefslogtreecommitdiff
path: root/pcr/python-renpy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python-renpy/PKGBUILD')
-rw-r--r--pcr/python-renpy/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/python-renpy/PKGBUILD b/pcr/python-renpy/PKGBUILD
new file mode 100644
index 000000000..f7c16e9b9
--- /dev/null
+++ b/pcr/python-renpy/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: AlexanderR <rvacheva at nxt dot ru>
+# Contributor: zhn <zhangn1985 AT gmail com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=python-renpy
+pkgver=6.14.1
+pkgrel=2
+pkgdesc="Platform-dependant Ren'Py libraries."
+arch=('i686' 'x86_64' 'mips64el')
+license=('MIT')
+url='http://www.renpy.org/'
+depends=('ffmpeg' 'fribidi' 'glew' 'python2-pygame' 'mesa')
+options=(!buildflags)
+conflicts=("renpy<$pkgver" 'renpy64' 'renpy-bin')
+# python-argparse is part of distribution since 2.7
+makedepends=('python2>=2.7' 'cython')
+changelog=ChangeLog
+source=("http://www.renpy.org/dl/$pkgver/renpy-${pkgver}-source.tar.bz2"
+ python2.diff
+ renpy.diff)
+
+md5sums=('16814530ba9ce1f2968bb8c8c785651b'
+ '19b861f4d934bfea817c161bf3ea1142'
+ '14f789d847dbd4278a2d5d74ab551e2d')
+
+build() {
+ cd "$srcdir"/renpy-${pkgver}-source
+
+ #patch -p1 < ../python2.diff
+ patch -Rp1 < ../renpy.diff
+
+ CFLAGS=-Os python2 module/setup.py build
+}
+
+package(){
+ cd "$srcdir"/renpy-${pkgver}-source
+
+ # install python-renpy
+ CFLAGS=-Os python2 module/setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
+ install -D -m644 'LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}