diff options
author | Bartłomiej Piotrowski | 2018-01-16 19:40:31 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-16 19:40:31 +0100 |
commit | 98f9e8fbc389f2bd3ff1c1407727411c3ab1118f (patch) | |
tree | c4a9c9c4578f0dd0ccfd1c8c7792c34c7b48cd46 | |
download | aur-98f9e8fbc389f2bd3ff1c1407727411c3ab1118f.tar.gz |
Import from official repositories
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | oolite | 9 |
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9516aff66e79 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = oolite + pkgdesc = A space-sim based on the classic Elite + pkgver = 1.86 + pkgrel = 2 + url = http://www.oolite.org/ + arch = x86_64 + license = GPL2 + makedepends = gnustep-make + makedepends = curl + makedepends = zip + makedepends = mesa + makedepends = gcc-objc + depends = gnustep-gui + depends = sdl_mixer + depends = glu + depends = espeak + depends = nspr + depends = python2 + depends = icu + depends = gnustep-base + depends = openal + source = oolite + source = https://github.com/OoliteProject/oolite/releases/download/1.86/oolite-source-1.86.tar.bz2 + sha512sums = 56fd49c040ea0abdb50fc14072d26aef8f6133bfa5c112a88e6c9f4716c8eaed3060587d8a41a2d6aeaa75de9a4cea4fd8e9c6418b01d2550eeeda41f8f08e44 + sha512sums = e06b3fde008dc91f636e2dd95114f00131197f99387f57fa365a8c66129cb9579664950bf3a1dab124a2ed9c9a3023b1a6b9444f4c5655a70eee269a07f8703c + +pkgname = oolite + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..451e0a8caa30 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Lone_Wolf <lonewolf@xs4all.nl> +pkgname=oolite +pkgver=1.86 +pkgrel=2 +pkgdesc="A space-sim based on the classic Elite" +arch=('x86_64') +url="http://www.oolite.org/" +license=('GPL2') +depends=('gnustep-gui' 'sdl_mixer' 'glu' 'espeak' 'nspr' 'python2' 'icu' 'gnustep-base' 'openal') +makedepends=('gnustep-make' 'curl' 'zip' 'mesa' 'gcc-objc') +#options=(makeflags) +source=(oolite + "https://github.com/OoliteProject/oolite/releases/download/${pkgver}/oolite-source-${pkgver}.tar.bz2") +sha512sums=('56fd49c040ea0abdb50fc14072d26aef8f6133bfa5c112a88e6c9f4716c8eaed3060587d8a41a2d6aeaa75de9a4cea4fd8e9c6418b01d2550eeeda41f8f08e44' + 'e06b3fde008dc91f636e2dd95114f00131197f99387f57fa365a8c66129cb9579664950bf3a1dab124a2ed9c9a3023b1a6b9444f4c5655a70eee269a07f8703c') + +build() { + cd oolite-source-${pkgver} + unset CPPFLAGS + #sed -i '/void png_error/d' src/Core/Materials/OOPNGTextureLoader.m + sed -i "/ADDITIONAL_OBJCFLAGS/s/=/= -fobjc-exceptions/" GNUmakefile + source /usr/share/GNUstep/Makefiles/GNUstep.sh + make -f Makefile release-deployment +} + +package() { + cd oolite-source-${pkgver} + + mkdir -p ${pkgdir}/usr/bin + mkdir -p ${pkgdir}/usr/share/{oolite,applications,pixmaps,doc/oolite} + + cp -r oolite.app/* ${pkgdir}/usr/share/oolite/ + + install -D -m755 ../oolite ${pkgdir}/usr/bin/oolite + install -D -m644 installers/FreeDesktop/oolite-icon.png ${pkgdir}/usr/share/pixmaps/oolite-icon.png + install -D -m644 installers/FreeDesktop/oolite.desktop ${pkgdir}/usr/share/applications/oolite.desktop + install -D -m644 Doc/AdviceForNewCommanders.pdf Doc/OoliteReadMe.pdf Doc/OoliteRS.pdf ${pkgdir}/usr/share/doc/oolite/ + } +# vim:set ts=2 sw=2 et: diff --git a/oolite b/oolite new file mode 100644 index 000000000000..e63dcf33abc2 --- /dev/null +++ b/oolite @@ -0,0 +1,9 @@ +#!/bin/bash +source /usr/share/GNUstep/Makefiles/GNUstep.sh +if [ ! -d ~/.Oolite/AddOns ]; then + mkdir -p ~/.Oolite/AddOns +fi +if [ ! -d ~/~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns ]; then + mkdir -p ~/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns +fi +/usr/share/oolite/oolite "$@" |