summaryrefslogtreecommitdiff
path: root/pcr/renpy-python3/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-09-08 11:25:10 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-09-19 16:34:26 -0300
commitd15b5f71fae3b17d8145f7cff1a4d88c2cc1db65 (patch)
tree1cea12ab4205fdf846ada2422fd854dd66a22c86 /pcr/renpy-python3/PKGBUILD
parent41872fc502c46f0e918150f1893e570c71b4ded7 (diff)
downloadabslibre-d15b5f71fae3b17d8145f7cff1a4d88c2cc1db65.tar.gz
abslibre-d15b5f71fae3b17d8145f7cff1a4d88c2cc1db65.tar.bz2
abslibre-d15b5f71fae3b17d8145f7cff1a4d88c2cc1db65.zip
add renpy-python3 to [pcr]
Diffstat (limited to 'pcr/renpy-python3/PKGBUILD')
-rw-r--r--pcr/renpy-python3/PKGBUILD82
1 files changed, 82 insertions, 0 deletions
diff --git a/pcr/renpy-python3/PKGBUILD b/pcr/renpy-python3/PKGBUILD
new file mode 100644
index 000000000..55ae76867
--- /dev/null
+++ b/pcr/renpy-python3/PKGBUILD
@@ -0,0 +1,82 @@
+# $Id: PKGBUILD 161858 2016-02-16 17:48:18Z alucryd $
+# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
+# Contributor (Arch): Cravix <dr.neemous@gmail.com>
+# Contributor (Arch): AlexanderR <rvacheva@nxt.ru>
+# Contributor (Arch): zhn <zhangn1985@gmail.com>
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+
+pkgbase=renpy
+pkgname=('renpy-python3' 'renpy-python3-demos')
+pkgver=6.99.8
+pkgrel=3
+pkgdesc="The Ren'Py Visual Novel Engine, with Python 3 support"
+arch=('i686' 'x86_64' 'armv7h')
+url='http://www.renpy.org'
+license=('MIT')
+depends=('ffmpeg' 'glew' 'python-pygame-sdl2')
+makedepends=('cython')
+source=("http://www.renpy.org/dl/${pkgver}/renpy-${pkgver}-source.tar.bz2"
+ 'renpy'
+ 'renpy.desktop'
+ 'renpy.png'
+ 'renpy-ffmpeg30.patch'
+ 'python3.patch')
+sha256sums=('0eb0c763bf7e977db06039c69751f1ed5e69c4b738f7f6d975e99e8729eff58e'
+ '993046143826c74f15ad3990d662878952594545eb315e3f1857ffe32e62399b'
+ 'fccde3461617a098a78d938d9db782d403eda410a84ab52825a597498ab95834'
+ '611edc07a40ccb8e04e8858847fc1d2a066d29c2ed54e5b357880a0605818dc5'
+ 'c2d27a3f6b74f874a790ce6c12e9d4b718784478d8a8aa23c879d186f60a25ab'
+ 'd3fa4d78ceb52f4ec26bc18e87f94e19bcf579766ef2ffee080d11194f0fb913')
+
+prepare() {
+ cd renpy-${pkgver}-source
+
+ patch -Np1 -i ../renpy-ffmpeg30.patch
+ patch -Np1 -i ../python3.patch # use "2to3" to convert all .py file to Python 3
+}
+
+build() {
+ cd renpy-${pkgver}-source
+
+ export RENPY_CYTHON='cython'
+
+ python module/setup.py build
+}
+
+package_renpy-python3() {
+ optdepends=('renpy-demos: Tutorial and The Question demos'
+ 'tk: Set projects directory')
+ conflicts=('renpy')
+
+ cd renpy-${pkgver}-source
+
+ python module/setup.py install --root="${pkgdir}" --prefix='/usr' --optimize='1'
+
+ install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,pixmaps,renpy,doc}}
+
+ cp -dr --no-preserve='ownership' doc launcher renpy renpy.py templates "${pkgdir}"/usr/share/renpy/
+ ln -s /usr/share/renpy/doc "${pkgdir}"/usr/share/doc/renpy
+
+ install -m 755 ../renpy "${pkgdir}"/usr/bin/
+ install -m 644 ../renpy.desktop "${pkgdir}"/usr/share/applications/
+ install -m 644 ../renpy.png "${pkgdir}"/usr/share/pixmaps/
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses/renpy
+ install -m 644 LICENSE.txt "${pkgdir}"/usr/share/licenses/renpy/
+}
+
+package_renpy-python3-demos() {
+ depends=('renpy-python3')
+ conflicts=('renpy-python3-demos')
+
+ cd renpy-${pkgver}-source
+
+ install -dm 755 "${pkgdir}"/usr/share/renpy
+
+ cp -dr --no-preserve='ownership' the_question tutorial "${pkgdir}"/usr/share/renpy/
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses
+ ln -s renpy "${pkgdir}"/usr/share/licenses/renpy-demos
+}
+
+# vim: ts=2 sw=2 et: