cruxports/prboom-plus/Pkgfile

25 lines
776 B
Plaintext

# Description: classic first-person shooter with demons and ghouls
# URL: https://github.com/coelckers/prboom-plus/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libmad sdl2_image sdl2_mixer sdl2_net
# Optional: fluidsynth portmidi timidity++
name=prboom-plus
version=2.6.66
release=1
source=(https://github.com/coelckers/prboom-plus/archive/v$version/$name-$version.tar.gz)
build() {
cd "$name-$version"/prboom2
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_BUILD_TYPE=Release
make
make DESTDIR=$PKG install
cd ..
install -D -m 0644 -t $PKG/usr/share/applications ICONS/prboom-plus.desktop
install -D -m 0644 -t $PKG/usr/share/pixmaps ICONS/prboom-plus.svg
rm -rf "$PKG/usr/share/doc"
}