diff options
author | Ainola | 2015-06-08 11:20:57 -0600 |
---|---|---|
committer | Ainola | 2015-06-08 11:20:57 -0600 |
commit | de25426690d01721f0e3a30916a3506e94248fcd (patch) | |
tree | 77399a4bc1568e43cee71e3657cb4edad033d5c0 | |
download | aur-7-light-years.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | 7-light-years.desktop | 10 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d4069ccec14f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = 7-light-years + pkgdesc = 7 Light-Years is a game of flying down an endless corridor of neon wire-meshes and geometrical shapes. + pkgver = 1 + pkgrel = 2 + url = http://nifflas.ni2.se/?page=Miscellaneous + arch = i686 + arch = x86_64 + license = custom + depends = glu + source = 7-light-years.zip::http://nifflas.ni2.se/content/Misc/7%20Light-years%20Linux.zip + source = 7-light-years.desktop + sha256sums = 2ff18a59d5741e17ce5fad001137e7a75babda0be5138539da0c87b3a8f3ebf9 + sha256sums = 898af2f7eec0f537e609d67cf2c197b87ac7f43438f7d3d881adfadbee105225 + +pkgname = 7-light-years + diff --git a/7-light-years.desktop b/7-light-years.desktop new file mode 100644 index 000000000000..2d058c7215a6 --- /dev/null +++ b/7-light-years.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=7 Light-Years +Comment=Play 7 Light-Years +Exec=7-light-years +Icon=7-light-years +Type=Application +Terminal=false +StartupNotify=true +Categories=Game;AudioVideo; +Encoding=UTF-8 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5cc24ca61e7f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: ainola <opp310@alh.rqh> (ROT13) + +pkgname=7-light-years +pkgver=1 +pkgrel=2 +pkgdesc="7 Light-Years is a game of flying down an endless corridor of neon wire-meshes and geometrical shapes." +arch=('i686' 'x86_64') +url="http://nifflas.ni2.se/?page=Miscellaneous" +license=('custom') +depends=('glu') +source=(7-light-years.zip::"http://nifflas.ni2.se/content/Misc/7%20Light-years%20Linux.zip" + "${pkgname}.desktop") +sha256sums=("2ff18a59d5741e17ce5fad001137e7a75babda0be5138539da0c87b3a8f3ebf9" + "898af2f7eec0f537e609d67cf2c197b87ac7f43438f7d3d881adfadbee105225") +[ "$CARCH" == "x86_64" ] && _arch="x86_64" || _arch="x86" + + +package() { + # Launcher and Data + install -Dm755 "${srcdir}/7 Light-years.${_arch}" "${pkgdir}/opt/${pkgname}/7 Light-years.${_arch}" + mv "${srcdir}/7 Light-years_Data" "${pkgdir}/opt/${pkgname}/" + + # Install Binaries/Launchers + mkdir -p "$pkgdir/usr/bin" + ln -s "/opt/${pkgname}/7 Light-years.${_arch}" "${pkgdir}/usr/bin/${pkgname}" + + # Desktop Integration + mkdir -p "$pkgdir/usr/share/pixmaps" + ln -s "/opt/${pkgname}/7 Light-years_Data/Resources/UnityPlayer.png" \ + "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + # Fix wonky permissions + find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \; + find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} \; + chmod 755 "${pkgdir}/opt/${pkgname}/7 Light-years.${_arch}" +} |