29 lines
930 B
Bash
29 lines
930 B
Bash
# Template file for 'pipenightdreams'
|
|
pkgname=pipenightdreams
|
|
version=0.10.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake flex libtool pkg-config"
|
|
makedepends="SDL_image-devel"
|
|
short_desc="Just another pipe trip"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.libsdl.org/projects/pipenightdreams"
|
|
distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
|
|
checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
|
|
|
|
pre_configure() {
|
|
find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
|
|
autoreconf -if
|
|
}
|
|
post_configure() {
|
|
# Replace non-expanded GAME_DATADIR prefix
|
|
sed -i src/config.h -e 's;"${prefix}/;"/usr/;'
|
|
}
|
|
post_install() {
|
|
vmkdir usr/share/applications
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
vmkdir usr/share/pixmaps
|
|
vinstall images/pipes_space/horizontal.png 644 usr/share/pixmaps ${pkgname}.png
|
|
}
|