summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Zhao2017-04-12 13:33:38 +0200
committerMax Zhao2017-04-12 13:33:38 +0200
commit7b3b0df3921bf53682c5f37279b4abbdabfef7ff (patch)
treed4e42fc0238958f71d9c79c3ddcac6312138e294
downloadaur-7b3b0df3921bf53682c5f37279b4abbdabfef7ff.tar.gz
initial commit
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD65
-rw-r--r--endless-sky.install9
3 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1f69f91c260
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+# Generated by mksrcinfo v8
+# Wed Apr 12 11:32:47 UTC 2017
+pkgbase = endless-sky
+ pkgdesc = A space exploration and combat game similar to Escape Velocity
+ pkgver = 0.9.6
+ pkgrel = 1
+ url = http://endless-sky.github.io/
+ install = endless-sky.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ license = CCPL
+ license = custom:public domain
+ makedepends = git
+ makedepends = scons
+ depends = sdl2
+ depends = libjpeg-turbo
+ depends = glew
+ depends = openal
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+ source = https://github.com/endless-sky/endless-sky/archive/v0.9.6.tar.gz
+ source = endless-sky.install
+ md5sums = d786e59f0419449826afc87f78006fe7
+ md5sums = 737bc185c599447d4eef7c215dabecc9
+
+pkgname = endless-sky
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b7d49b7a619
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Max Zhao <alcasa dot mz at gmail dot com>
+# Contributor: Leonard K├Ânig <leonard.r.koenig at googlemail dot com>
+
+pkgname='endless-sky'
+pkgver=0.9.6
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://endless-sky.github.io/"
+# libpng and libgl are already fetched by sdl2
+# xdg-utils for icon cache
+depends=('sdl2' 'libjpeg-turbo' 'glew' 'openal' 'hicolor-icon-theme' 'xdg-utils')
+makedepends=('git' 'scons')
+license=('GPL3' 'CCPL' 'custom:public domain')
+pkgdesc="A space exploration and combat game similar to Escape Velocity"
+install=${pkgname}.install
+source=(
+"https://github.com/endless-sky/endless-sky/archive/v${pkgver}.tar.gz"
+ "${pkgname}.install")
+
+md5sums=('d786e59f0419449826afc87f78006fe7'
+ '737bc185c599447d4eef7c215dabecc9')
+#
+# PKGEXT='.pkg.tar'
+#
+
+build() {
+ cd $pkgname-$pkgver
+ scons
+ # gzip manpage
+ gzip -f endless-sky.6
+}
+
+
+package() {
+ cd $pkgname-$pkgver
+ # Install executables
+ install -D --mode=755 endless-sky ${pkgdir}/usr/bin/endless-sky
+
+ # resources
+ ## They explicitly want this path. Although one could workaround with '-r' param
+ install --directory ${pkgdir}/usr/share/games/${pkgname}
+ cp -rf data images sounds ${pkgdir}/usr/share/games/${pkgname}/
+ install -D --mode=644 credits.txt ${pkgdir}/usr/share/games/${pkgname}/credits.txt
+ install -D --mode=644 keys.txt ${pkgdir}/usr/share/games/${pkgname}/keys.txt
+
+ # icons and .desktop
+ _idir=endless-sky.iconset
+ _iddir=${pkgdir}/usr/share/icons/hicolor
+
+ install -D --mode=644 icons/icon_16x16.png ${_iddir}/16x16/apps/${pkgname}.png
+ install -D --mode=644 icons/icon_22x22.png ${_iddir}/22x22/apps/${pkgname}.png
+ install -D --mode=644 icons/icon_24x24.png ${_iddir}/24x24/apps/${pkgname}.png
+ install -D --mode=644 icons/icon_32x32.png ${_iddir}/32x32/apps/${pkgname}.png
+ install -D --mode=644 icons/icon_48x48.png ${_iddir}/48x48/apps/${pkgname}.png
+ install -D --mode=644 icons/icon_256x256.png ${_iddir}/256x256/apps/${pkgname}.png
+ install -D --mode=644 endless-sky.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
+
+ # manpage
+ install -D --mode=644 endless-sky.6.gz ${pkgdir}/usr/share/man/man6/${pkgname}.6.gz
+
+ # copyright
+ install -D --mode=644 copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/endless-sky.install b/endless-sky.install
new file mode 100644
index 00000000000..6855d325b95
--- /dev/null
+++ b/endless-sky.install
@@ -0,0 +1,9 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
+
+# vim:set ts=2 sw=2 et: