diff options
Diffstat (limited to 'pcr/renpy/PKGBUILD')
-rw-r--r-- | pcr/renpy/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pcr/renpy/PKGBUILD b/pcr/renpy/PKGBUILD new file mode 100644 index 000000000..61874b5ba --- /dev/null +++ b/pcr/renpy/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: AlexanderR <rvacheva at nxt dot ru> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=renpy +pkgver=6.16.2 +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.$pkgname.org/ +depends=( + python2-$pkgname=$pkgver + ttf-dejavu +) +conflicts=( + $pkgname-bin + ${pkgname}64 +) +replaces=${pkgname}64 +install=$pkgname.install +source=( + http://www.$pkgname.org/dl/$pkgver/$pkgname-$pkgver-source.tar.bz2 + $pkgname.desktop + $pkgname.{sh,csh} + $pkgname-launcher.sh +) +sha512sums=( + fc3b40f01f2d1e820a05f90a2d85e42986aaa4840e506d18ea76a78527d2f98ca6cf832ebde3e1f996b94f4ce4b175856da913f3de7f1a9db48aba0eea84b52d + 1af85c7a0c10662bfa4c03611fed695325f5953ac0f2c913f5342b1dca22b22115f07e69d646d92a3b95f5b896283e9b1bc7fe3e0a338536b5d9d48beedae8d5 + 2a9302adbc6ff45e048d42487ac86e7501f90b2d393933af5d39d663a0b3707f795a04f65598e356a64809dfa0175a4ad860b355e5337ee149692c21caf339df + bcb3152a88d5f913a99855e9d6fa5d0019e310ba9d55a6288d2d8b60cb6c9ab3ddf8c772dfd23a2851d52479adc2a16bd3ffe25ff7fb50d222ec1f55eaa48b09 + 727f9f16e1cff76c279d6e1578572a92c7b21ec34c6cb2841a04ac7b5cf6d2836487293744a9541993ee2e3a8dae927feb4e78f1afd01a748f5489090453cdd7 +) + +prepare() { + cd "$srcdir/$pkgname-$pkgver-source" + + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $pkgname.py + + msg 'fonts are provided by ttf-dejavu' + cd $pkgname + rm -v common/DejaVuSans.ttf common/DejaVuSans.txt +} + +package(){ + cd $pkgname-$pkgver-source + + install -vd $pkgdir/{usr/share/{$pkgname,doc/$pkgname},etc/profile.d} + install -vm755 $srcdir/$pkgname.{sh,csh} $pkgdir/etc/profile.d + install -vDm755 $srcdir/$pkgname-launcher.sh $pkgdir/usr/bin/$pkgname + install -vDm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop + + cp -va launcher $pkgname{,.py} templates the_question tutorial $pkgdir/usr/share/$pkgname + ln -vs $pkgname/common $pkgdir/usr/share/$pkgname/common + cp -va doc/* $pkgdir/usr/share/doc/$pkgname + + install -vDm644 launcher/game/logo.png $pkgdir/usr/share/pixmaps/$pkgname.png + install -vDm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE + + chgrp -vR games $pkgdir/usr/share/$pkgname/{the_question,tutorial} + chmod -vR g+w $pkgdir/usr/share/$pkgname/{the_question,tutorial} +} |