diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-05-17 01:06:33 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-05-17 01:07:23 +0200 |
commit | fcc2a275752197fe47ecdbdd6f1f47a3306fb3b4 (patch) | |
tree | 1322b7e6aa99f88cc10779423eee508ab8228c6d | |
parent | a68eb8dfdf8d94fdd44d34e01d9e42bb6c9835e1 (diff) | |
download | abslibre-fcc2a275752197fe47ecdbdd6f1f47a3306fb3b4.tar.gz abslibre-fcc2a275752197fe47ecdbdd6f1f47a3306fb3b4.tar.bz2 abslibre-fcc2a275752197fe47ecdbdd6f1f47a3306fb3b4.zip |
pcr: Add endless-sky
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | pcr/endless-sky/PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pcr/endless-sky/PKGBUILD b/pcr/endless-sky/PKGBUILD new file mode 100644 index 000000000..191e7bda8 --- /dev/null +++ b/pcr/endless-sky/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer (AUR): George Rawlinson <george@rawlinson.net.nz> +# Contributor (AUR): Max Zhao <alcasa dot mz at gmail dot com> +# Contributor (AUR): Leonard König <leonard.r.koenig at googlemail dot com> + +# parabola changes and rationale: +# no changes. + +pkgname=endless-sky +pkgver=0.9.12 +pkgrel=1 +arch=('i686' 'x86_64') +url="http://endless-sky.github.io/" +depends=(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 space exploration and combat game similar to Escape Velocity" +source=("$pkgname-$pkgver.tar.gz::https://github.com/endless-sky/endless-sky/archive/v${pkgver}.tar.gz") +sha512sums=('694d3c6f50f80e8b4ff79580fa9510fde26a846dd227736af96a3eda7810d68b2ae051a72c0e02fe88eae9d839e48933614aa172a9bed6653e03ad30feaddc05') + +build() { + cd $pkgname-$pkgver + # remove -jnproc for reproducible builds + scons -j "$(nproc)" +} + + +package() { + cd $pkgname-$pkgver + + # Install executable + install -Dm755 -t "${pkgdir}/usr/bin" endless-sky + + # resources + install -Dm644 credits.txt "${pkgdir}/usr/share/games/${pkgname}/credits.txt" + install -Dm644 keys.txt "${pkgdir}/usr/share/games/${pkgname}/keys.txt" + cp -rf data images sounds "${pkgdir}/usr/share/games/${pkgname}/" + + # .desktop + install -Dm644 -t "${pkgdir}/usr/share/applications" endless-sky.desktop + + # icons + for res in 16 22 24 32 48 128 256 512; do + install -Dm644 \ + "${srcdir}/${pkgname}-${pkgver}/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 + + # copyright + install -Dm644 copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: |