void-packages/srcpkgs/neverball/template
2021-09-09 07:54:17 +07:00

47 lines
1.6 KiB
Bash

# Template file for 'neverball'
pkgname=neverball
version=1.6.0
revision=5
hostmakedepends="gettext"
makedepends="libpng-devel libjpeg-turbo-devel libvorbis-devel SDL2_ttf-devel physfs-devel"
depends="desktop-file-utils"
short_desc="Puzzle/action game similar to Super Monkey Ball"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.neverball.org"
distfiles="http://www.neverball.org/$pkgname-$version.tar.gz"
checksum=73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0
nocross="./mapc: ./mapc: cannot execute binary file"
CFLAGS="-fcommon"
do_build() {
make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
ENABLE_NLS=1 DATADIR=/usr/share/neverball LOCALEDIR=/usr/share/locale
}
do_install() {
for dir in usr/bin usr/share/neverball usr/share/locale \
usr/share/applications usr/share/pixmaps \
usr/share/doc/neverball; do
vmkdir ${dir}
done
for f in neverball neverputt mapc; do
install -m755 ${f} ${DESTDIR}/usr/bin
done
cp -a data/* ${DESTDIR}/usr/share/neverball
find ${DESTDIR}/usr/share/neverball -type f -exec chmod 0644 {} \;
cp -a locale/* ${DESTDIR}/usr/share/locale
install -m644 dist/*.desktop ${DESTDIR}/usr/share/applications
install -m644 dist/*.png ${DESTDIR}/usr/share/pixmaps
ln -s neverball_48.png ${DESTDIR}/usr/share/pixmaps/neverball.png
ln -s neverputt_48.png ${DESTDIR}/usr/share/pixmaps/neverputt.png
install -m644 doc/manual.txt ${DESTDIR}/usr/share/doc/neverball
install -D -m644 dist/mapc.1 ${DESTDIR}/usr/share/man/man1/mapc.1
vmkdir usr/share/man/man6
install -m644 dist/*.6 ${DESTDIR}/usr/share/man/man6
}