diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 82 | ||||
-rw-r--r-- | superhexagon.desktop | 12 | ||||
-rw-r--r-- | superhexagon.install | 10 |
5 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..94fc43d0839a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = superhexagon + pkgdesc = A minimal action game by Terry Cavanagh, with music by Chipzel + pkgver = 16 + pkgrel = 2 + url = http://superhexagon.com/ + install = superhexagon.install + arch = i686 + arch = x86_64 + groups = games + license = unknown + makedepends = unzip + depends = gcc-libs + depends = freeglut + depends = libvorbis + depends = openal + depends = glu + depends = glew1.6 + source = hib://super-hexagon-linux-16-bin-1366677959 + source = superhexagon.desktop + source = superhexagon.install + sha256sums = 2c6dfba53cb0dd58bcbff519862af8bf7af67475845bb43207e9d32032efa104 + sha256sums = c4584c99f2c29b7b5eb9258789a98427f22786eff5c286f7bfca2c98d71ee2e6 + sha256sums = c6ba824f73917be27af3fa1d0e57ef1651d70e7a0473a98a02dae3df05e2e625 + +pkgname = superhexagon + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2e37f905d198 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +pkg/ +src/ +*.pkg.* +*.src.* +linux-*.tar.gz +patch.tar.bz2 +super-hexagon-*-bin* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..45e9f5185aa7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,82 @@ +# Maintainer: J0k3r <moebius282 e4at gmail D0_T com> + +pkgname=superhexagon +pkgver=16 +pkgrel=2 +pkgdesc="A minimal action game by Terry Cavanagh, with music by Chipzel" +url="http://superhexagon.com/" +license=('unknown') +arch=('i686' 'x86_64') +groups=("games") +depends=('gcc-libs' 'freeglut' 'libvorbis' 'openal' 'glu' 'glew1.6') +makedepends=('unzip') +install="${pkgname}.install" +_purgelibs=('libglut.so.3' 'libogg.so.0' 'libopenal.so.1' 'libstdc++.so.6' 'libvorbis.so.0' 'libvorbisfile.so.3' 'libGLEW.so.1.6') +_binver="1366677959" +_archivename="super-hexagon-linux-${pkgver}-bin-${_binver}" +source=("hib://${_archivename}" + "${pkgname}.desktop" + "${pkgname}.install") +sha256sums=('2c6dfba53cb0dd58bcbff519862af8bf7af67475845bb43207e9d32032efa104' + 'c4584c99f2c29b7b5eb9258789a98427f22786eff5c286f7bfca2c98d71ee2e6' + 'c6ba824f73917be27af3fa1d0e57ef1651d70e7a0473a98a02dae3df05e2e625') +#PKGEXT=".pkg.tar" + + +# You can download the Humble Indie Bundle file manually, or you can configure +# DLAGENTS in makepkg.conf to auto-download. +# +# For example, to use hib-dlagent to download files set something like this in +# your makepkg.conf (change/add -k and add -u/-p to your needs): +# DLAGENTS=('hib::/usr/bin/hib-dlagent -k 1a2b3c -o %o $(echo %u | cut -c 7-)') +# +# To auto-search through a directory containing Humble Bundle downloads, you +# could set: +# DLAGENTS=('hib::/usr/bin/find /path/to/downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit') +DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Download manually to \"$(pwd)\" or setup hib:// DLAGENT in /etc/makepkg.conf."; exit 1') + + +package() +{ + mkdir -p "${pkgdir}/opt/${pkgname}/" + +# unzip is stupid.. + unzip -qq "${srcdir}/${_archivename}" -d "${pkgdir}/opt/tmp/" 'data/*' || true + + mv "${pkgdir}/opt/tmp/data/"* "${pkgdir}/opt/${pkgname}/" + rm -r "${pkgdir}/opt/tmp/" + + if [[ "$CARCH" == "x86_64" ]]; then + + rm -r "${pkgdir}/opt/${pkgname}/x86/" + for i in "${_purgelibs[@]}"; do + rm "${pkgdir}/opt/${pkgname}/x86_64/${i}" + done + + # msg "Patching files ..." + # mv -f "${srcdir}/x86_64/superhexagon.x86_64" "${pkgdir}/opt/${pkgname}/x86_64/" + + else + + rm -r "${pkgdir}/opt/${pkgname}/x86_64/" + for i in "${_purgelibs[@]}"; do + rm "${pkgdir}/opt/${pkgname}/x86/${i}" + done + + # msg "Patching files ..." + # mv -f "${srcdir}/x86/superhexagon.x86" "${pkgdir}/opt/${pkgname}/x86/" + + fi + +# patching the included startup script so it supports being symlinked +# removing the steam bits out of the lib search path; i don't know why it contains a steam dir in the non-steam version.. + sed -i \ + -e 's|`dirname "$0"`|$(dirname \"$(readlink -f \"$0\")\")|' \ + "${pkgdir}/opt/${pkgname}/SuperHexagon" + + mkdir -p "${pkgdir}/usr/bin/" + ln -s "/opt/${pkgname}/SuperHexagon" "${pkgdir}/usr/bin/${pkgname}" + + install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -D -m644 "${pkgdir}/opt/${pkgname}/SuperHexagon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" +}
\ No newline at end of file diff --git a/superhexagon.desktop b/superhexagon.desktop new file mode 100644 index 000000000000..57636c34dbdc --- /dev/null +++ b/superhexagon.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Value=1.0 +Type=Application +Name=SuperHexagon +GenericName=SuperHexagon +Comment=A minimal action game by Terry Cavanagh, with music by Chipzel +Icon=superhexagon.png +Exec=superhexagon +Categories=Game; +Path=/opt/superhexagon + diff --git a/superhexagon.install b/superhexagon.install new file mode 100644 index 000000000000..a01f3c8c79ef --- /dev/null +++ b/superhexagon.install @@ -0,0 +1,10 @@ +post_install() +{ + echo 'You can configure the fullscreen resolution of the game in the startup script "/usr/bin/superhexagon"' + echo 'This will fix fullscreen with multihead setups! yay!' +} + +post_upgrade() +{ + post_install +}
\ No newline at end of file |