blob: aac95074bded6e95c996ed895978a17b3fd52f84 (
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
|
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: DeedleFake <yisszev at beckforce dot com>
# Contributor: JJK
# Contributor: DilithiumNitrate
pkgname=srb2
pkgver=2.2.13
_dataver=2.2.13
pkgrel=1
pkgdesc='A 3D Sonic fan game based off of Doom Legacy (aka "Sonic Robo Blast 2")'
arch=('i686' 'x86_64')
license=('GPL')
url='http://www.srb2.org'
depends=('sdl2_mixer' 'libpng' 'libgme' "srb2-data>=$_dataver" 'libopenmpt')
makedepends=('mesa' 'glu')
makedepends_i686=('nasm')
source=("https://github.com/STJr/SRB2/archive/SRB2_release_${pkgver}.zip"
"srb2.desktop"
"srb2-opengl.desktop")
sha256sums=('bb712110e0afe2af89a3901f9b27c5b6ca7031c1e43ed210ee98dcd55aa43e85'
'8ffd2b2d1662045ce890b59ff420f9426531e073e9c8f4f5c158da53e150cc21'
'ff5f4a5413cf3110d9b064a98f8512a925bf8e7f127c8cf7ddb43885cff3c38d')
prepare() {
cd SRB2-SRB2_release_$pkgver/src
# make comptime.sh optional
sed 's/^comptime\.c ::/comptime.c :/' -i Makefile
# use better version string
sed 's/-DCOMPVERSION//' -i Makefile
sed 's/illegal/AUR/' -i comptime.c
}
build() {
cd SRB2-SRB2_release_$pkgver/src
[ "$CARCH" == "x86_64" ] && IS64BIT="64" || IS64BIT=""
# do not upx binary, do not use version script (optional: show warnings, be verbose)
make LINUX$IS64BIT=1 NOUPX=1 NOVERSION=1 #WARNINGMODE=1 ECHO=1
}
package() {
[ "$CARCH" == "x86_64" ] && IS64BIT="64" || IS64BIT=""
install -Dm755 SRB2-SRB2_release_$pkgver/bin/lsdl2srb2 \
"$pkgdir"/usr/bin/srb2
# icon + .desktop
install -Dm644 SRB2-SRB2_release_$pkgver/src/sdl/SDL_icon.xpm \
"$pkgdir"/usr/share/pixmaps/srb2.xpm
install -Dm644 srb2.desktop "$pkgdir"/usr/share/applications/srb2.desktop
install -m644 srb2-opengl.desktop "$pkgdir"/usr/share/applications
}
|