contrib/neverball/Pkgfile

28 lines
912 B
Plaintext
Raw Normal View History

2007-09-12 16:03:16 +02:00
# Description: Tilt the floor to roll a ball through an obstacle course.
# URL: http://icculus.org/neverball/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-09-12 16:03:16 +02:00
# Packager: Mark Rosenstand, mark at borkware dot net
2020-05-26 00:33:14 +02:00
# Depends on: libsdl2 physfs sdl2_image sdl2_mixer sdl2_ttf
2006-10-29 13:17:55 +01:00
name=neverball
2020-05-26 00:33:14 +02:00
version=1.6.0
2006-10-29 13:17:55 +01:00
release=1
2020-05-26 00:33:14 +02:00
source=(http://icculus.org/neverball/neverball-$version.tar.gz
https://github.com/Neverball/neverball/commit/27279856.patch)
2006-10-29 13:17:55 +01:00
build() {
2010-11-03 15:15:51 +01:00
cd $name-$version
2020-05-26 00:33:14 +02:00
patch -Np1 -i $SRC/27279856.patch
2010-11-03 15:15:51 +01:00
sed -i -e '/CONFIG_DATA/s|\./data|/usr/share/neverball|g' \
share/base_config.h
2020-05-26 00:33:14 +02:00
make CPPFLAGS="$CPPFLAGS -DNDEBUG" CFLAGS="$CFLAGS" DATADIR=/usr/share/neverball LOCALEDIR=/usr/share/locale
2010-11-03 15:15:51 +01:00
2007-09-12 16:03:16 +02:00
install -d $PKG/usr/{bin,share/icons}
2006-10-29 13:17:55 +01:00
cp neverball neverputt $PKG/usr/bin
2010-11-03 15:15:51 +01:00
find data -type f -exec chmod -v 0644 {} \;
2006-10-29 13:17:55 +01:00
cp -r data $PKG/usr/share/neverball
2010-11-03 15:15:51 +01:00
cp -r data/icon $PKG/usr/share/icons/neverball
2006-10-29 13:17:55 +01:00
}