From d9442b8a5c84de4d6b52715c17979f63bc673b1b Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Fri, 18 Jun 2021 16:30:12 -0700 Subject: Sync with changes made from the switch to community --- 0001-fix-Add-missing-string-include.patch | 10 ----- PKGBUILD | 64 +++++++++++++++---------------- endless-sky.desktop | 14 ------- 3 files changed, 31 insertions(+), 57 deletions(-) delete mode 100644 0001-fix-Add-missing-string-include.patch delete mode 100644 endless-sky.desktop diff --git a/0001-fix-Add-missing-string-include.patch b/0001-fix-Add-missing-string-include.patch deleted file mode 100644 index eeb12a5..0000000 --- a/0001-fix-Add-missing-string-include.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/source/Panel.h -+++ b/source/Panel.h -@@ -17,6 +17,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. - - #include - #include -+#include - - #include - diff --git a/PKGBUILD b/PKGBUILD index 315b99d..4a3285e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,19 +5,37 @@ # # I maintain this because: -# AUR version uses /usr/share/games +# Arch version lacks additional optimization and hardening flags pkgname=endless-sky pkgver=0.9.13 -pkgrel=1 +pkgrel=2 +pkgdesc="A sandbox-style space exploration and combat game" arch=('x86_64' 'i686' 'aarch64') url="https://endless-sky.github.io/" -depends=(gcc-libs openal libpng glew hicolor-icon-theme libjpeg-turbo sdl2 libmad) -makedepends=(scons) -optdepends=('endless-sky-high-dpi: high resolution graphics assets' - 'endless-sky-editor: map editor') -license=('GPL3' 'CCPL' 'custom:public domain') -pkgdesc="A sandbox-style space exploration and combat game" +license=( + 'GPL3' + 'custom:CC-BY-3.0' + 'custom:CC-BY-4.0' + 'custom:CC-BY-NC-3.0' + 'custom:CC-BY-SA-3.0' + 'custom:CC-BY-SA-4.0' + 'custom:public-domain' +) +depends=( + 'gcc-libs' + 'openal' + 'libpng' + 'glew' + 'hicolor-icon-theme' + 'libjpeg-turbo' + 'sdl2' + 'libmad' +) +makedepends=('scons') +optdepends=( + 'endless-sky-high-dpi: high resolution graphics assets' +) source=("$pkgname-$pkgver.tar.gz::https://github.com/endless-sky/endless-sky/archive/v${pkgver}.tar.gz") b2sums=('6d4c7f37ce4dfff2bae3eb6cee4948e6e27df086c2017f56bddf2d212011bfff135931915ab3f34c5e2f432acbf38126f7a774835d427652c8870d98e66c5f06') @@ -36,33 +54,13 @@ build() { scons "${MAKEFLAGS}" } - package() { cd "$pkgname-$pkgver" - scons DESTDIR="$pkgdir" PREFIX=/usr install - - # binary - #install -Dm755 endless-sky "${pkgdir}/usr/bin/endless-sky" - - # resources - # hard coded paths are evil - #install -Dm644 credits.txt "${pkgdir}/usr/lib/${pkgname}/credits.txt" - #install -Dm644 keys.txt "${pkgdir}/usr/lib/${pkgname}/keys.txt" - #cp -rf data images sounds "${pkgdir}/usr/lib/${pkgname}/" - - # .desktop - #install -Dm644 ${srcdir}/endless-sky.desktop "${pkgdir}/usr/share/applications/endless-sky.desktop" - - # icons - #for res in 16 22 24 32 48 128 256 512; do - # install -Dm644 \ - # "icons/icon_${res}x${res}.png" \ - # "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png" - #done - - # manpage - #install -Dm644 -t "${pkgdir}/usr/share/man/man6" endless-sky.6 + scons \ + DESTDIR="$pkgdir" \ + PREFIX=/usr \ + install # license - install -Dm644 copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" copyright } diff --git a/endless-sky.desktop b/endless-sky.desktop deleted file mode 100644 index 5822291..0000000 --- a/endless-sky.desktop +++ /dev/null @@ -1,14 +0,0 @@ -[Desktop Entry] -Name=Endless Sky -GenericName=Space game -GenericName[de]=Weltraumspiel -GenericName[fr]=Jeu spatial -Comment=Space exploration and combat game -Comment[de]=Weltraumhandels und Kampfsimulator -Comment[fr]=Jeu d'exploration et de combat dans l'espace -Exec=endless-sky -r /lib/endless-sky -Icon=endless-sky -Terminal=false -Type=Application -Keywords=game;simulator;space;sandbox;rpg; -Categories=Game;Simulation; -- cgit v1.2.1