blob: bcba87b820e464e323fd5e2ccace2c320e58ac84 (
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
|
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributors: Marcin Skory, Arkham, Christoph Zeiler, Jacek Poplawski, carstene1ns
pkgname=alephone
_pkgdate=20240822
pkgver=1.10_$_pkgdate
pkgrel=1
pkgdesc='A free, enhanced port of the classic FPS "Marathon 2" by Bungie Software'
arch=('i686' 'x86_64')
url="https://alephone.lhowon.org/"
license=('GPL3')
depends=('sdl2_ttf' 'sdl2_image' 'sdl2_net' 'libmad' 'glu' 'zziplib'
'ffmpeg4.4' 'boost-libs' 'curl')
optdepends=('alephone-eternalx: community-made scenario'
'alephone-evil: community-made scenario'
'alephone-infinity: original data for Marathon Infinity'
'alephone-marathon: M1A1 data converted for AlephOne'
'alephone-marathon2: original data for Marathon 2: Durandal')
makedepends=('boost' 'mesa' 'icoutils')
source=("https://github.com/Aleph-One-Marathon/alephone/releases/download/release-$_pkgdate/AlephOne-$_pkgdate.tar.bz2")
sha256sums=('12cd94a3444824761e3bfeb45e21d52c97bd1286a7f03444b402362868ee2da3')
prepare() {
cd AlephOne-$_pkgdate
# convert the windows icons
cd Resources/Windows
icotool -x -w 48 alephone.ico -o "$srcdir"/alephone.png
icotool -x -w 48 marathon.ico -o "$srcdir"/alephone-marathon.png
icotool -x -w 48 marathon2.ico -o "$srcdir"/alephone-marathon2.png
icotool -x -w 48 marathon-infinity.ico -o "$srcdir"/alephone-infinity.png
}
build() {
cd AlephOne-$_pkgdate
PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig" ./configure --prefix=/usr
make
}
package() {
cd AlephOne-$_pkgdate
make DESTDIR="$pkgdir/" install
# icons
install -d "$pkgdir"/usr/share/icons
install -m644 "$srcdir"/*.png "$pkgdir"/usr/share/icons
# docs
#install -Dm644 README.txt "$pkgdir"/usr/share/doc/alephone/README
#install -m644 docs/*.html "$pkgdir"/usr/share/doc/alephone
}
|