Skip to content

Commit

Permalink
New package: srb2-2.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
oreo639 committed Jul 27, 2020
1 parent 01b8bcc commit e56e2e0
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
21 changes: 21 additions & 0 deletions srcpkgs/srb2-data/template
@@ -0,0 +1,21 @@
# Template file for 'srb2-data'
pkgname=srb2-data
version=2.2.6
revision=1
archs=noarch
create_wrksrc=true
short_desc="3D Sonic fan game based off of Doom Legacy - game data"
maintainer="oreo639 <oreo6391@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://srb2.org/"
distfiles="https://github.com/STJr/SRB2/releases/download/SRB2_release_${version}/SRB2-${version}-Data.zip
https://github.com/STJr/SRB2/releases/download/SRB2_release_${version}/SRB2-${version}-Patch.zip"
checksum="7e1d57dc7bb7d3b4d02750d7c851204ef9ad521b5390f3609bd6920d137ae0b4
ca71aa9045f02336dc0ae2ababed49eb93dcb06405ccd4c19fc684f002ab9017"

do_install() {
vmkdir /usr/share/games/SRB2
for f in {music,player}.dta {srb2,zones,patch,patch_music}.pk3; do
vcopy ${f} /usr/share/games/SRB2
done
}
9 changes: 9 additions & 0 deletions srcpkgs/srb2/files/srb2.desktop
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Sonic Robo Blast 2
Encoding=UTF-8
Exec=srb2
Icon=srb2
Terminal=false
Type=Application
StartupNotify=false
Categories=Application;Game;
37 changes: 37 additions & 0 deletions srcpkgs/srb2/template
@@ -0,0 +1,37 @@
# Template file for 'srb2'
pkgname=srb2
version=2.2.6
revision=1
wrksrc="SRB2-SRB2_release_${version}"
build_style=gnu-makefile
make_use_env=yes
make_build_args=" -C src LINUX=1 USE_OPENMP=1 EXENAME=${pkgname}
DBGNAME=${pkgname}-debug NOOBJDUMP=1 NOUPX=1"
hostmakedepends="pkg-config"
makedepends="SDL2-devel SDL2_mixer-devel libpng-devel libupnp-devel libgme-devel libopenmpt-devel"
depends="srb2-data-${version}_${revision}"
short_desc="3D Sonic fan game based off of Doom Legacy"
maintainer="oreo639 <oreo6391@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://srb2.org/"
distfiles="https://github.com/STJr/SRB2/archive/SRB2_release_${version}.tar.gz"
checksum=951cf412bdc70e6b25427b92fafc8dea2f7723c290a7b3a51f870d47f9e4aab0

case "$XBPS_TARGET_MACHINE" in
i686*) makedepends+=" nasm" ;;
x86_64*) make_build_args+=" X86_64=1 NONX86=1" ;;
*) make_build_args+=" NONX86=1" ;;
esac

if [ -n "$CROSS_BUILD" ]; then
make_build_args+=" OBJCOPY=objcopy-${XBPS_CROSS_TRIPLET}"
fi

do_install() {
vbin bin/Linux/Release/${pkgname}
}

post_install() {
vinstall srb2.png 644 /usr/share/pixmaps
vinstall ${FILESDIR}/srb2.desktop 644 /usr/share/applications/
}

0 comments on commit e56e2e0

Please sign in to comment.