From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/scorched3d/PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 community/scorched3d/PKGBUILD (limited to 'community/scorched3d/PKGBUILD') diff --git a/community/scorched3d/PKGBUILD b/community/scorched3d/PKGBUILD new file mode 100644 index 000000000..61bf7cb63 --- /dev/null +++ b/community/scorched3d/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: Seppo Porspakka +# Contributor: Daniel J Griffiths + +pkgname=scorched3d +pkgver=43.3.d +_pkgver=43.3d +pkgrel=5 +pkgdesc="3D artillery combat game" +arch=('i686' 'x86_64') +url="http://www.scorched3d.co.uk/" +license=('GPL') +depends=('sdl_net' 'wxgtk' 'freealut>=1.0.0-3' 'libvorbis' 'glu' 'fftw' 'libjpeg>=8' 'xdg-utils') +makedepends=('gendesk' 'mesa') +install=scorched3d.install +source=("http://downloads.sourceforge.net/${pkgname}/Scorched3D-${_pkgver}-src.tar.gz" + 'scorched3d.png::http://cdn.portableapps.com/Scorched3DPortable_128.png' + 'scorched3d-42.1-gcc43.patch' + 'scorched3d-42.1-fixups.patch' + 'scorched3d-libpng1.5.patch' + 'libpng14.patch') +md5sums=('9c3043282a9e7451468ff325bef3b04c' + '0f7e570f586c227873e909ebbc17c84d' + '053769f77a38c252eef1d967b18e93e6' + 'dfde556559d95bca07c4a390c60790b4' + 'ec6958191751b5a2c44aa15abfc75269' + 'c8c03855fd3693122fd39427fa3638c1') + +build() { + cd "$srcdir/scorched" + +# patch -Np1 -i ${srcdir}/scorched3d-42.1-gcc43.patch +# patch -Np1 -i ${srcdir}/scorched3d-42.1-fixups.patch + patch -Np1 -i ${srcdir}/scorched3d-libpng1.5.patch +# patch -Np0 -i ${srcdir}/libpng14.patch + + WANT_WXGTK=gtk2 + sh autogen.sh \ + --prefix=/usr \ + --datadir=/usr/share/scorched3d \ + --disable-openaltest \ + --with-wx-config=wx-config + + sed -i '1 i #include ' src/client/client/SecureID.cpp + #sed -i 's/-lz/-lz -lalut/g' src/scorched/Makefile || return 1 + #sed -i 's|/usr/local/lib/libwx_gtk-2.4.a||' src/scorched/Makefile || return 1 + + make +} + +package() { + cd "$srcdir" + gendesk + + cd scorched + make DESTDIR=${pkgdir} install + cd .. + + install -D -m644 scorched3d.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png" + install -D -m644 scorched3d.png "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -D -m644 scorched3d.desktop "$pkgdir/usr/share/applications/$pkgname.desktop" +} -- cgit v1.2.3-54-g00ecf