blob: 89c07a43374f944f9575db4ba26f441e8beae08a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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}
}
|