summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-30 10:02:24 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-12-30 10:02:24 -0200
commitd731a980f156ec8d47292e47b63a17bced3d0268 (patch)
tree3fba346e748678ad51ca66042af0427d9167e7b1 /pcr
parentfc4714ea1f54e9248645e043207f17261ae12652 (diff)
renpy: adding new package to [pcr] repo.
Diffstat (limited to 'pcr')
-rw-r--r--pcr/renpy/ChangeLog30
-rw-r--r--pcr/renpy/PKGBUILD57
-rw-r--r--pcr/renpy/python2.diff8
-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
8 files changed, 134 insertions, 0 deletions
diff --git a/pcr/renpy/ChangeLog b/pcr/renpy/ChangeLog
new file mode 100644
index 000000000..566d97fa9
--- /dev/null
+++ b/pcr/renpy/ChangeLog
@@ -0,0 +1,30 @@
+2012-28-07 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.14.1-1 :
+ new upstream release.
+ removed optdepends.
+ removed jedit-external.diff (does not work anymore).
+
+2012-23-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.12-1 :
+ Added notice abot RENPY_BASE usage to renpy.install.
+
+2012-20-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.12-1 :
+ new upstream release.
+
+2012-07-04 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.11-1 :
+ new upstream release.
+
+2012-16-03 AlexanderR <alexanderr at gmx dot com>
+
+ * 6.13.9-1 :
+ re-split package python-renpy into two. added ChangeLog.
+ added jedit-external.diff to split jedit into optdepends.
+ added profile.d scripts to export RENPY_BASE.
+ added icon, launcher script and .desktop file.
+ creation of link from /usr/share/renpy/doc to /usr/share/doc/renpy.
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}
+}
diff --git a/pcr/renpy/python2.diff b/pcr/renpy/python2.diff
new file mode 100644
index 000000000..9153659a2
--- /dev/null
+++ b/pcr/renpy/python2.diff
@@ -0,0 +1,8 @@
+--- renpy-6.13.9/renpy.py 2012-01-16 01:48:05.000000000 +1100
++++ renpy-6.13.9.new/renpy.py 2012-03-16 05:36:41.406170787 +1100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ #@PydevCodeAnalysisIgnore
+ # Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us>
+ #
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..9630a255f
--- /dev/null
+++ b/pcr/renpy/renpy.install
@@ -0,0 +1,21 @@
+post_install() {
+ ln -sf "/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 "/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/