milis/talimatname/genel/b/bitfighter/talimat

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Hızlı tempolu ekip tabanlı dış alan çok oyunculu muharebe oyunu
2017-12-22 23:19:06 +01:00
# URL: http://bitfighter.org/
# Paketçi: milisarge
# Gerekler: cmake xorg-glu sdl2 libpng libvorbis libmodplug openal speex
2018-07-19 17:45:36 +02:00
# Grup: oyun
2017-06-12 03:26:01 +02:00
2017-10-28 14:10:23 +02:00
isim=bitfighter
surum=0.19f
devir=1
kaynak=(http://bitfighter.org/files/bitfighter-${version/./}.tar.gz
2017-12-22 23:19:06 +01:00
https://bitfighter.org/files/classic_level_pack.zip
bitfighter.png
bitfighter.desktop)
2017-06-12 03:26:01 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${isim}-${version/./}
2017-06-12 03:26:01 +02:00
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
-DUSE_SDL2:BOOL=YES \
-DUSE_GLES:BOOL=YES \
-DCMAKE_BUILD_TYPE=Release \
..
make VERBOSE=1
# install game ressources and executable
2017-10-28 14:10:23 +02:00
install -d "$PKG"/usr/share/$isim "$PKG"/usr/bin
2017-06-12 03:26:01 +02:00
cd ..
cp "${SRC}"/classic_level_pack/* resource/
cp notifier/gci/bitfighter.ini resource/
2017-10-28 14:10:23 +02:00
cp -r resource/* "$PKG"/usr/share/$isim
install -m755 exe/$isim "$PKG"/usr/bin/$isim
2017-06-12 03:26:01 +02:00
# install a desktop entry
2017-10-28 14:10:23 +02:00
install -Dm644 ../$isim.png "$PKG"/usr/share/pixmaps/$isim.png
install -Dm644 ../$isim.desktop "$PKG"/usr/share/applications/$isim.desktop
2017-06-12 03:26:01 +02:00
}