diff options
author | root <root@rshg047.dnsready.net> | 2011-05-11 22:34:26 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-11 22:34:26 +0000 |
commit | 8867b1d4d0601b21618d44d015460739590ca01d (patch) | |
tree | e67076b8591d23942739891c69b2f5459ff9e909 /community/oolite/PKGBUILD | |
parent | 01b47af6474ac094ec199c7d75208874f8842d87 (diff) |
Wed May 11 22:34:25 UTC 2011
Diffstat (limited to 'community/oolite/PKGBUILD')
-rw-r--r-- | community/oolite/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/oolite/PKGBUILD b/community/oolite/PKGBUILD new file mode 100644 index 000000000..c32d7c8e8 --- /dev/null +++ b/community/oolite/PKGBUILD @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Lone_Wolf <lonewolf@xs4all.nl> +pkgname=oolite +pkgver=1.75.2 +pkgrel=2 +pkgdesc="A space-sim based on the classic Elite" +arch=('i686' 'x86_64') +url="http://oolite-linux.berlios.de" +license=('GPL2') +depends=('gnustep-gui' 'sdl_mixer' 'mesa' 'espeak' 'nspr' 'python2' 'icu') +makedepends=('gcc-objc' 'gnustep-make' 'curl' 'zip') +source=(oolite http://download2.berlios.de/oolite-linux/oolite-dev-source-${pkgver}.tar.bz2) +md5sums=('d4b3fdc553fbd4aa4418864eebd21ede' + '926720981d94fd09c9e2824dbc102d5e') + +build() { + cd $srcdir + cp -r ${srcdir}/oolite-dev-source-${pkgver} ${srcdir}/${pkgname}-build + +# running 'make -f libjs.make debug=no' and/or 'make -f Makefile release' +# works from commandline, but gives errors that cause makepkg to abort + cd ${srcdir}/${pkgname}-build/deps/Cocoa-deps/scripts + ./update-mozilla.sh + mkdir -p ${srcdir}/${pkgname}-build/deps/Cross-platform-deps/mozilla/js/src/build-release + cd ${srcdir}/${pkgname}-build/deps/Cross-platform-deps/mozilla/js/src/build-release + ../configure --disable-shared-js --enable-threadsafe --with-system-nspr --disable-tests --enable-trace-jscalls +# end of lines needed to avoid makepkg aborting + cd ${srcdir}/${pkgname}-build + make -f libjs.make debug=no + make -f Makefile release +} + +package() { + mkdir -p ${pkgdir}/usr/bin + mkdir -p ${pkgdir}/usr/share/{oolite,applications,pixmaps,doc/oolite} + cd ${srcdir}/${pkgname}-build + cp -r oolite.app/* ${pkgdir}/usr/share/oolite/ +#install shellscript and icon + install -D -m755 ../oolite ${pkgdir}/usr/bin/oolite + install -D -m644 installers/FreeDesktop/oolite-icon.png ${pkgdir}/usr/share/pixmaps/oolite-icon.png +# copy .desktop file + install -D -m644 installers/FreeDesktop/oolite.desktop ${pkgdir}/usr/share/applications/oolite.desktop +# documentation + install -D -m644 Doc/AdviceForNewCommanders.pdf Doc/OoliteReadMe.pdf Doc/OoliteRS.pdf ${pkgdir}/usr/share/doc/oolite/ + } +# vim:set ts=2 sw=2 et: |