blob: bbf744213a3a25303bd28a25af15af0766936bf3 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
pkgname=renpy
pkgver=8.3.4.24120703
pkgrel=1
pkgdesc="Visual novel engine Ren'Py along with its platdeps libs"
arch=('i686' 'x86_64')
license=('MIT')
url='http://www.renpy.org'
depends=(
'glibc' 'ffmpeg6.1' 'fribidi' 'harfbuzz' 'freetype2' 'libpng'
'python-pygame-sdl2' 'sdl2' 'sdl2_image' 'sdl2_mixer'
'sdl2_gfx' 'sdl2_ttf' 'python-future' 'python-ecdsa')
makedepends=(
'cython0' 'python-setuptools-scm' 'python-sphinx_rtd_dark_mode'
'python-sphinx_rtd_theme' 'python-build' 'python-installer' 'python-wheel' 'git')
provides=('python-renpy')
replaces=('renpy64')
install='renpy.install'
source=("git+https://github.com/${pkgname}/${pkgname}.git#tag=${pkgver}"
"${pkgname}.desktop"
"${pkgname}-launcher.sh")
sha256sums=('e11a92b866fce4ed6160a0d55b1b629c5844caa1d5165239cc6d14847af52282'
'b58efcc42526c4de15e8963b02991e558b5e3d15d720b3777b791ac13fc815e6'
'a38112859bf659d48c30be5c7c20ed1a1c72271ffd74eb4b4e730afbd87d73dc')
build() {
cd "${pkgname}"
export CFLAGS+=' -I/usr/include/ffmpeg6.1 -L/usr/lib/ffmpeg6.1 -Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration'
export RENPY_DEPS_INSTALL='/usr/include/ffmpeg6.1:/usr/lib/ffmpeg6.1:/usr'
# This always return the last version from HEAD regardless of what version we are building.
#python 'distribute.py' --vc-version-only
install -Dm644 <(cat << EOF
branch = 'master'
nightly = False
official = False
version = '$pkgver'
version_name = 'Second Star to the Right'
EOF
) 'renpy/vc_version.py'
pushd 'module'
python -m build --wheel --no-isolation
#rm -rf "$srcdir/tempinstall"
#python -m installer --destdir="$srcdir/tempinstall" dist/*.whl
popd
python -m compileall 'renpy'
#local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
#for game in 'tutorial' 'launcher' 'the_question'; do
#PYTHONPATH="$srcdir/tempinstall/usr/lib/python${python_version}/site-packages" python 'renpy.py' --compile "$game"
#done
# build docs
#cd 'sphinx'
#mkdir -p 'source/inc'
#PYTHONPATH="$srcdir/tempinstall/usr/lib/python${python_version}/site-packages" python ../renpy.py .
#RENPY_NO_FIGURES=1 sphinx-build -E -a source ../doc -j ${SPHINX_JOBS:-auto}
}
package() {
depends+=('python-pefile' 'python-requests' 'python-rsa' 'python-six')
#pack data
mkdir -p "$pkgdir/usr/share/$pkgname"
install -D -m755 "${pkgname}-launcher.sh" "$pkgdir/usr/bin/$pkgname"
install -D -m644 "${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
cd "${pkgname}"
cp -r 'sdk-fonts' 'launcher' 'renpy' 'renpy.py' 'the_question' 'tutorial' 'gui' "$pkgdir/usr/share/$pkgname"
#cp -r doc/* "$pkgdir/usr/share/doc/$pkgname"
install -D -m644 'launcher/game/images/logo.png' "$pkgdir/usr/share/pixmaps/${pkgname}.png"
install -D -m644 'sphinx/source/license.rst' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -d -m755 "$pkgdir/usr/share/renpy/lib/py3-linux-x86_64"
ln -s '/usr/bin/renpy' "$pkgdir/usr/share/renpy/lib/py3-linux-x86_64"
#pack modules
cd 'module'
python -m installer --destdir="$pkgdir" dist/*.whl
}
|