summaryrefslogtreecommitdiff
path: root/pcr/renpy
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-12 06:14:30 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-12 06:14:30 -0300
commite806fdd6fdcab100f7685dadd2b4dca04675b3d0 (patch)
tree30c3cd4c3705cf774a084c3bcae4fd12f7555c12 /pcr/renpy
parent345b8c4070212e489cfc754155bc8dfea4db17b3 (diff)
moved blender-addon-ogre,cambozola,collada-dom,mednafen-server,mitsuba,nexuiz,nexuiz-data,noip,openssh-knock,renpy,supermodel,systemd-knock,tupi,xcftools,yafaray,zoneminder to [pcr] repo
Diffstat (limited to 'pcr/renpy')
-rw-r--r--pcr/renpy1
-rw-r--r--pcr/renpy/PKGBUILD77
-rw-r--r--pcr/renpy/renpy-launcher.sh4
-rw-r--r--pcr/renpy/renpy.csh1
-rw-r--r--pcr/renpy/renpy.desktop12
-rw-r--r--pcr/renpy/renpy.install21
-rw-r--r--pcr/renpy/renpy.sh1
7 files changed, 116 insertions, 1 deletions
diff --git a/pcr/renpy b/pcr/renpy
deleted file mode 100644
index 4eb47d013..000000000
--- a/pcr/renpy
+++ /dev/null
@@ -1 +0,0 @@
-moved to [ssh://git@projects.parabola.nu/~git/pcr.git/pcr] git repo
diff --git a/pcr/renpy/PKGBUILD b/pcr/renpy/PKGBUILD
new file mode 100644
index 000000000..4cfbbb1fa
--- /dev/null
+++ b/pcr/renpy/PKGBUILD
@@ -0,0 +1,77 @@
+# Maintainer (Arch): AlexanderR <rvacheva at nxt dot ru>
+# Contributor (Arch): zhn <zhangn1985 AT gmail com>
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+
+pkgbase=renpy
+pkgname=($pkgbase python2-$pkgbase)
+pkgver=6.18.3
+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=('i686' 'x86_64' 'mips64el')
+license=MIT
+url="http://www.$pkgbase.org/"
+depends=('ttf-dejavu')
+makedepends=('cython' 'ffmpeg' 'freetype2>=2.5.1' 'fribidi' 'glew' 'python2>=2.7' 'python2-pygame>=1.9.1')
+conflicts=("${pkgbase}64" "$pkgbase-bin")
+replaces=("${pkgbase}64")
+source=("http://www.$pkgbase.org/dl/$pkgver/$pkgbase-$pkgver-source.tar.bz2"
+ "$pkgbase.desktop" "$pkgbase."{sh,csh} "$pkgbase-launcher.sh")
+sha512sums=('7ea99adaf1fbea7a499790fb5b37349fc797f383fb633956a43955c80885b259e26570469c430f4c4c103e62444f60082690489ee6400809f5e9024693261e55'
+ '1af85c7a0c10662bfa4c03611fed695325f5953ac0f2c913f5342b1dca22b22115f07e69d646d92a3b95f5b896283e9b1bc7fe3e0a338536b5d9d48beedae8d5'
+ '2a9302adbc6ff45e048d42487ac86e7501f90b2d393933af5d39d663a0b3707f795a04f65598e356a64809dfa0175a4ad860b355e5337ee149692c21caf339df'
+ 'bcb3152a88d5f913a99855e9d6fa5d0019e310ba9d55a6288d2d8b60cb6c9ab3ddf8c772dfd23a2851d52479adc2a16bd3ffe25ff7fb50d222ec1f55eaa48b09'
+ '727f9f16e1cff76c279d6e1578572a92c7b21ec34c6cb2841a04ac7b5cf6d2836487293744a9541993ee2e3a8dae927feb4e78f1afd01a748f5489090453cdd7')
+
+export CPPFLAGS="$CPPFLAGS $(pkg-config freetype2 --cflags) $(pkg-config glib-2.0 --cflags)"
+
+prepare() {
+ cd $srcdir/$pkgbase-$pkgver-source
+
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $pkgbase.py module/setup.py
+
+ msg 'fonts are provided by ttf-dejavu'
+ cd $pkgname
+ rm -v common/DejaVuSans.ttf common/DejaVuSans.txt
+}
+
+build() {
+ cd $srcdir/$pkgbase-$pkgver-source
+ python2 module/setup.py build
+}
+
+package_renpy() {
+ depends+=("python2-$pkgbase=$pkgver")
+ arch=('any')
+ install=$pkgbase.install
+
+ cd $pkgbase-$pkgver-source
+
+ install -vd $pkgdir/{usr/share/{$pkgbase,doc/$pkgbase},etc/profile.d}
+ install -vm755 $srcdir/$pkgbase.{sh,csh} $pkgdir/etc/profile.d
+ install -vDm755 $srcdir/$pkgbase-launcher.sh $pkgdir/usr/bin/$pkgbase
+ install -vDm644 $srcdir/$pkgbase.desktop $pkgdir/usr/share/applications/$pkgbase.desktop
+
+ cp -va launcher $pkgbase{,.py} templates the_question tutorial $pkgdir/usr/share/$pkgbase
+ ln -vs $pkgbase/common $pkgdir/usr/share/$pkgbase/common
+ cp -va doc/* $pkgdir/usr/share/doc/$pkgbase
+
+ install -vDm644 launcher/game/images/logo.png $pkgdir/usr/share/pixmaps/$pkgbase.png
+ install -vDm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgbase/LICENSE
+
+ chgrp -vR games $pkgdir/usr/share/$pkgbase/{the_question,tutorial}
+ chmod -vR g+w $pkgdir/usr/share/$pkgbase/{the_question,tutorial}
+}
+
+package_python2-renpy() {
+ pkgdesc="Platform-dependant Ren'Py libraries"
+ depends=('ffmpeg' 'freetype2>=2.5.1' 'fribidi' 'glew' 'python2-pygame>=1.9.1')
+ provides=("python-$pkgbase=$pkgver")
+ conflicts=("python-$pkgbase")
+ replaces=("python-$pkgbase")
+
+ cd $pkgbase-$pkgver-source
+
+ msg "install $pkgname"
+ python2 module/setup.py install --root=$pkgdir/ --prefix=/usr --optimize=1
+ install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/pcr/renpy/renpy-launcher.sh b/pcr/renpy/renpy-launcher.sh
new file mode 100644
index 000000000..605c0c1fd
--- /dev/null
+++ b/pcr/renpy/renpy-launcher.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+mkdir -p ~/renpy_projects
+cd ~/renpy_projects
+exec env python2 -OO /usr/share/renpy/renpy.py "$@"
diff --git a/pcr/renpy/renpy.csh b/pcr/renpy/renpy.csh
new file mode 100644
index 000000000..71269b48c
--- /dev/null
+++ b/pcr/renpy/renpy.csh
@@ -0,0 +1 @@
+setenv RENPY_BASE /usr/share/renpy/
diff --git a/pcr/renpy/renpy.desktop b/pcr/renpy/renpy.desktop
new file mode 100644
index 000000000..5cd64ea94
--- /dev/null
+++ b/pcr/renpy/renpy.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Ren'Py
+GenericName= renpy
+GenericName[fr]= renpy
+Comment=A programming language and runtime, intended to ease the creation of visual-novel type games.
+Comment[fr]=Un langage de programmation et un exécutable conçus pour faciliter la création de jeux de type "visual-novel"
+Icon=renpy.png
+Exec=renpy
+Categories=Game;AdventureGame;
+
diff --git a/pcr/renpy/renpy.install b/pcr/renpy/renpy.install
new file mode 100644
index 000000000..bfe161cdb
--- /dev/null
+++ b/pcr/renpy/renpy.install
@@ -0,0 +1,21 @@
+post_install() {
+ ln -vsf /usr/share/doc/renpy /usr/share/renpy/doc
+
+ cat << EOF
+This package sets global environment variable RENPY_BASE, forcing all RenPy
+games, including incompatible ones, to use system-wide interpreter. Undefine
+this variable to launch games, you downloaded somewhere, with their built-in
+versions of interpreter.
+
+To run two example games: The Question and RenPy Tutorial you should be
+member of "games" group.
+EOF
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -v /usr/share/renpy/doc
+}
diff --git a/pcr/renpy/renpy.sh b/pcr/renpy/renpy.sh
new file mode 100644
index 000000000..32b2e6d29
--- /dev/null
+++ b/pcr/renpy/renpy.sh
@@ -0,0 +1 @@
+export RENPY_BASE=/usr/share/renpy/