New package: garden-1.0.9

This commit is contained in:
cr6git 2017-11-25 11:09:11 +01:00 committed by Toyam Cox
parent b7766c6c67
commit 4eafbd18dd
1 changed files with 29 additions and 0 deletions

29
srcpkgs/garden/template Normal file
View File

@ -0,0 +1,29 @@
# Template file for 'garden'
pkgname=garden
version=1.0.9
revision=1
build_style=gnu-configure
makedepends="allegro4-devel"
depends="desktop-file-utils hicolor-icon-theme"
maintainer="cr6git <quark6@protonmail.com>"
short_desc="Old school 2D vertical shoot-em-up with some innovative elements"
homepage="http://garden.sourceforge.net/drupal/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/garden/garden/${version}/garden-${version}.tar.gz"
checksum=daf8732c229a4cc04f460514bff1ba05171faada9e19575c72a50a914f2352e3
pre_configure() {
sed -i "s|inline int xpart (int angle, int length);|//&|" src/stuff.c
sed -i "s|^inline int xpart (int|int xpart (int|" src/stuff.c
sed -i "s|^inline int ypart (int|int ypart (int|" src/stuff.c
}
do_configure() {
LIBS="$LIBS -lm" ./configure --prefix=/usr
}
post_install() {
vinstall resources/garden.desktop 644 usr/share/applications
vinstall resources/garden.svg 644 usr/share/icons/hicolor/scalable/apps
}