blob: b5891747dfc81865befc84b1cb665fe62f0df972 (
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
58
59
60
61
62
63
64
65
66
|
# Maintainer: AlexanderR <rvacheva at nxt dot ru>
# Contributor: zhn <zhangn1985 AT gmail com>
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
pkgname=python2-renpy
pkgflag=renpy
pkgver=6.15.0
pkgrel=1
pkgdesc="Platform-dependant Ren'Py libraries."
arch=(
i686
x86_64
mips64el
)
license=MIT
url="http://www.$pkgflag.org/"
depends=(
fribidi
glew
libav
libgl
python2-pygame
)
# python-argparse is part of distribution since 2.7
makedepends=(
cython2
libav-builder # to solve libav deps
mesa
'python2>=2.7'
)
options=!buildflags
provides="python-$pkgflag=$pkgver"
conflicts=(
python-$pkgflag
"$pkgflag<$pkgver"
$pkgflag64
$pkgflag-bin
)
renplaces=python-$pkgflag
changelog=ChangeLog
source=(
"http://www.$pkgflag.org/dl/$pkgver/$pkgflag-$pkgver-source.tar.bz2"
)
sha512sums=(
8ad2299a61d0e2e2c0c08d441459b28a09a3244dfcf173957e3bbbf2d9eb64087c12c05e62438dca815116d9582a136c50d5cceb33796146adc4d9508ac630b1
)
build() {
cd $srcdir/$pkgflag-$pkgver-source
sed -i -e '
s#!/usr/bin/env python#!/usr/bin/env python2#;
' module/setup.py
CFLAGS=-Os setarch $CARCH python2 module/setup.py build
}
package(){
cd $srcdir/$pkgflag-$pkgver-source
# install python2-$pkgflag
CFLAGS=-Os setarch $CARCH python2 module/setup.py install --root=$pkgdir/ --prefix=/usr --optimize=1
install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|