blob: 35b5f1b797ce202ddfe5b8b8ebe2c6b6ebf8bd2d (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=apotris
pkgname=$_pkgname-git
pkgver=4.1.0.r180.g22ee7f1
pkgrel=2
pkgdesc="A block stacking puzzle game for the Game Boy Advance (Linux port)"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://apotris.com/"
license=('AGPL-3.0-only')
depends=('bash' 'glibc' 'libdatachannel' 'sdl2')
makedepends=(
'cmake'
'cpr'
'git'
'libgcc'
'libogg'
'libopenmpt'
'libstdc++'
'meson'
'nlohmann-json'
'opus'
'python'
'sdl2_mixer'
'xxd'
)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+https://gitea.com/akouzoukos/apotris.git"
"$_pkgname-soloud::git+https://gitea.com/Apotris/SoLoud.git"
"$_pkgname-tilengine::git+https://gitea.com/Apotris/Tilengine.git"
"$_pkgname.sh"
"$_pkgname-install.patch"
"$_pkgname-use-system-libs.patch"
"soloud-use-system-libs.patch"
)
b2sums=(
'SKIP'
'SKIP'
'SKIP'
'6a5b652537461135895820391beb20bb2e64e312f08ddbd9ea8d313047118693556df26e89019e81b26c6650388597eebbc8ae4cf824739aadb41121d728ed80'
'591788870c918e4a2609d459fa3d3ec3ff277067088558ceacacc3121320af62909f27d3dccbc43e3152f9be6712bf33998258800e2bc7c2f95277d993b3f097'
'6dfbd1a1350fa8cb8873d2e1e3a7e93daf35326eafef7dd9252ab37e1294c56b6ce64a023cbeedf57cd62170347d467212cc9bf5791d2bd44c5938b585bd71a7'
'287d56bc52fa3de3dcf9d89a5d104f520c2cc8a0cda4ac3021dee8b0cd0ef38235290cda2f3a84da75d2623e228df2d3a1b4fa6a50565fca5200b1386680e26d'
)
pkgver() {
cd $_pkgname
git describe --long --tags --abbrev=7 | sed 's/^v//;s/[^-]*-g/r&/;s/-/./g'
}
prepare() {
cd $_pkgname
git config submodule.subprojects/SoLoud.url ../$_pkgname-soloud
git config submodule.tilengine.url ../$_pkgname-tilengine
git -c protocol.file.allow=always submodule update
patch -Np1 < ../$_pkgname-use-system-libs.patch
patch -Np1 < ../$_pkgname-install.patch
sed -i 's/data_/apotris_&/' tools/callBin2S.py
cd subprojects/SoLoud
patch -Np1 < ../../../soloud-use-system-libs.patch
}
build() {
arch-meson -D b_lto=false build-linux $_pkgname
meson compile -C build-linux
}
package() {
depends+=(
'libcpr.so'
'libgcc_s.so'
'libopenmpt.so'
'libstdc++.so'
)
# shellcheck disable=SC2154
meson install -C build-linux --destdir "$pkgdir"
install -Dm755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname
}
|