This commit is contained in:
Travis Burtrum 2019-01-23 23:18:50 -05:00
parent 2d75f0e6ff
commit 26c82823bd
4 changed files with 88 additions and 0 deletions

18
src/srb2-data/PKGBUILD Normal file
View File

@ -0,0 +1,18 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: DeedleFake <yisszev at beckforce dot com>
pkgname=srb2-data
pkgver=2.1.14
pkgrel=1
pkgdesc="Data files for Sonic Robo Blast 2"
arch=('any')
license=('GPL')
url='http://www.srb2.org'
optdepends=('srb2: "Sonic Robo Blast 2" game')
source=("http://rosenthalcastle.org/srb2/SRB2-v${pkgver//./}-Installer.exe")
sha256sums=('f345e02a9877452b92b49903a4cc2e473a1eabe3c3c00c2704b42239a292a5f3')
package() {
install -d "$pkgdir"/usr/share/games/SRB2
install -m644 {music,player,rings,zones}.dta srb2.srb "$pkgdir"/usr/share/games/SRB2
}

56
src/srb2/PKGBUILD Normal file
View File

@ -0,0 +1,56 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: DeedleFake <yisszev at beckforce dot com>
pkgname=srb2
pkgver=2.1.20
_dataver=2.1.14
_patchver=2.1.15
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")
makedepends=('mesa' 'glu')
makedepends_i686=('nasm')
source=("https://github.com/STJr/SRB2/archive/SRB2_release_$pkgver.zip"
"http://rosenthalcastle.org/srb2/SRB2-v${_patchver//./}-patch.zip"
"srb2.desktop"
"srb2-opengl.desktop")
sha256sums=('a4018bc29be0a52e4df1a92df9ae04e275a792227a9d6ee6a174099ad15e0db4'
'89e25aaa793f3b56f0bde04b964bd239f21bb81f9ef5df34717e6afc31ee34d1'
'ac9fa63f29ad9413797da8c6f0a4f76fa6f4dd0710d1e84a457a8c42cf6df4f9'
'f696bab390d2b1028bf2f5c5d4d838c0981dc211cec4c4a8f349b7ec0580e701')
prepare() {
cd SRB2-SRB2_release_$pkgver/src
# disable Animated PNG saving support, allows build with libpng16
sed 's|#define USE_APNG|/* & */|' -i m_misc.c
# 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/Linux$IS64BIT/Release/lsdl2srb2 \
"$pkgdir"/usr/bin/srb2
# data patch 2.1.14 → 2.1.15, no changes for 2.1.16-2.1.20
install -Dm644 patch.dta "$pkgdir"/usr/share/games/SRB2/patch.dta
# 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
}

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Sonic Robo Blast 2 (OpenGL)
Exec=srb2 -opengl
Icon=srb2
Terminal=false
Categories=Game;

7
src/srb2/srb2.desktop Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Sonic Robo Blast 2
Exec=srb2
Icon=srb2
Terminal=false
Categories=Game;