summaryrefslogtreecommitdiff
path: root/pcr/renpy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/renpy/PKGBUILD')
-rw-r--r--pcr/renpy/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/pcr/renpy/PKGBUILD b/pcr/renpy/PKGBUILD
new file mode 100644
index 000000000..89c07a433
--- /dev/null
+++ b/pcr/renpy/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: AlexanderR <rvacheva at nxt dot ru>
+
+pkgname=renpy
+pkgver=6.14.1
+pkgrel=1
+pkgdesc="Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. This package contains both player and development tools."
+arch=('any')
+license=('MIT')
+url='http://www.renpy.org/'
+# is ttf-dejavu required by renpy or games itself?
+depends=("python-renpy=$pkgver" 'ttf-dejavu')
+options=(!strip !zipman)
+conflicts=('renpy-bin' 'renpy64')
+replaces=('renpy64')
+install=renpy.install
+changelog=ChangeLog
+source=("http://www.renpy.org/dl/$pkgver/renpy-$pkgver-source.tar.bz2"
+ "${pkgname}.desktop"
+ "${pkgname}."{sh,csh}
+ 'python2.diff'
+ 'renpy-launcher.sh')
+
+md5sums=('16814530ba9ce1f2968bb8c8c785651b'
+ 'a9beb35fa6c6d8af7ba5d2a764c33158'
+ 'd206d24b78e207a2c3b603fef14ac47f'
+ '8b9922e26e567248a2a5adc1d0cdfdd4'
+ '0476b16220e6faeb031e1dbfe45249b4'
+ 'dfa92cdecc15e5c1ddee387fbbbb2d9c')
+
+build() {
+ cd "$srcdir/renpy-$pkgver-source"
+
+ patch -p1 < ../python2.diff
+
+ # fonts are provided by ttf-dejavu
+ rm common/DejaVuSans.ttf common/DejaVuSans.txt
+}
+
+package(){
+ mkdir -p "$pkgdir/"{usr/share/{$pkgname,doc/$pkgname},etc/profile.d}
+
+ cd "$srcdir"
+
+ install -m755 ${pkgname}.{sh,csh} "$pkgdir/etc/profile.d"
+ install -D -m755 $pkgname-launcher.sh "$pkgdir/usr/bin/$pkgname"
+ install -D -m644 ${pkgname}.desktop "$pkgdir/usr/share/applications/${pkgname}.desktop"
+
+ cd renpy-$pkgver-source
+
+ cp -r launcher renpy common renpy.py template the_question tutorial "$pkgdir/usr/share/$pkgname"
+ cp -r doc/* "$pkgdir/usr/share/doc/$pkgname"
+ install -D -m644 launcher/game/logo.png "$pkgdir/usr/share/pixmaps/${pkgname}.png"
+ install -D -m644 'LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ chgrp -R games "$pkgdir"/usr/share/renpy/{the_question,tutorial}
+ chmod g+w "$pkgdir"/usr/share/renpy/{the_question,tutorial}
+}