summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Weiss2017-09-07 14:23:40 +0200
committerLuca Weiss2017-09-07 14:23:40 +0200
commita51d4b942a8e1063777896b1232c0029aa1c7cda (patch)
tree5c606b30da01e9b2facaa1597ebc9398fdb173b8
parentd077dafa2a1fdf1363de3d8745d08ec275669fec (diff)
downloadaur-a51d4b942a8e1063777896b1232c0029aa1c7cda.tar.gz
Hopefully fix libcurl
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
-rw-r--r--hyperlightdrifter.desktop2
-rwxr-xr-xhyperlightdrifter.sh3
4 files changed, 16 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 06b7e8f70d2..6e3e6306712 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = hyperlightdrifter
pkgdesc = A 2D action role-playing game (Humble Version)
pkgver = 2017.06.01
- pkgrel = 1
+ pkgrel = 2
url = http://www.heart-machine.com/
arch = i686
arch = x86_64
@@ -14,8 +14,10 @@ pkgbase = hyperlightdrifter
noextract = HyperLightDrifter-DRMFree-Linux-2017-06-01.sh
source = local://HyperLightDrifter-DRMFree-Linux-2017-06-01.sh
source = hyperlightdrifter.desktop
+ source = hyperlightdrifter.sh
md5sums = c85ab8e098d686adb93693055a20c152
md5sums = 060673538dadaf471bef5e83475ddf4e
+ md5sums = 489f12df8313d8f4fc422553fa4f2d43
depends_x86_64 = lib32-libcurl-compat
depends_x86_64 = lib32-openal
depends_x86_64 = lib32-libxcursor
diff --git a/PKGBUILD b/PKGBUILD
index 6fb320028fc..e596e6ac7b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=hyperlightdrifter
_gamename=HyperLightDrifter
_pkgver=2017-06-01
pkgver=${_pkgver//-/.}
-pkgrel=1
+pkgrel=2
_filename="HyperLightDrifter-DRMFree-Linux-${_pkgver}.sh"
pkgdesc="A 2D action role-playing game (Humble Version)"
arch=('i686' 'x86_64')
@@ -17,10 +17,12 @@ depends=('libcurl-compat' 'openal' 'libxcursor' 'libpulse')
depends_x86_64=('lib32-libcurl-compat' 'lib32-openal' 'lib32-libxcursor' 'lib32-libpulse')
makedepends=('unzip')
source=("local://${_filename}"
- "hyperlightdrifter.desktop")
+ "hyperlightdrifter.desktop"
+ "hyperlightdrifter.sh")
noextract=("${_filename}")
md5sums=('c85ab8e098d686adb93693055a20c152'
- '060673538dadaf471bef5e83475ddf4e')
+ '060673538dadaf471bef5e83475ddf4e'
+ '489f12df8313d8f4fc422553fa4f2d43')
prepare() {
if [ -d "${srcdir}/${pkgname}" ]; then
@@ -31,15 +33,11 @@ prepare() {
}
package() {
- mkdir -p "${pkgdir}/opt/${_gamename}/"
- mkdir -p "${pkgdir}/usr/bin/"
- mkdir -p "${pkgdir}/usr/share/applications/"
+ install -Dm755 "$srcdir/$pkgname/data/x86/HyperLightDrifter.x86" "$pkgdir/opt/$_gamename/"
+ cp -r "$srcdir/$pkgname/data/noarch/"* "$pkgdir/opt/$_gamename/"
- install -Dm755 "${srcdir}/${pkgname}/data/x86/HyperLightDrifter.x86" "${pkgdir}/opt/${_gamename}/"
- cp -r "${srcdir}/${pkgname}/data/noarch/"* "${pkgdir}/opt/${_gamename}/"
-
- ln -s "${pkgdir}/opt/${_gamename}/HyperLightDrifter.x86" "${pkgdir}/usr/bin/hyperlightdrifter"
- install -m644 "${srcdir}/hyperlightdrifter.desktop" "${pkgdir}/usr/share/applications/hyperlightdrifter.desktop"
+ install -Dm644 "$srcdir/hyperlightdrifter.sh" "$pkgdir/usr/bin/hyperlightdrifter"
+ install -Dm644 "$srcdir/hyperlightdrifter.desktop" "$pkgdir/usr/share/applications/hyperlightdrifter.desktop"
}
# vim:set ts=2 sw=2 et:
diff --git a/hyperlightdrifter.desktop b/hyperlightdrifter.desktop
index 684db13a17e..c6a54be057a 100644
--- a/hyperlightdrifter.desktop
+++ b/hyperlightdrifter.desktop
@@ -6,6 +6,6 @@ Name=Hyper Light Drifter
GenericName=Hyper Light Drifter
Comment=Hyper Light Drifter
Icon=/opt/HyperLightDrifter/Icon.png
-Exec="/opt/HyperLightDrifter/HyperLightDrifter.x86"
+Exec="/usr/bin/hyperlightdrifter"
Categories=Game;
Path=/opt/HyperLightDrifter
diff --git a/hyperlightdrifter.sh b/hyperlightdrifter.sh
new file mode 100755
index 00000000000..74fc8cd2e1b
--- /dev/null
+++ b/hyperlightdrifter.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+env LD_PRELOAD=/usr/lib32/libcurl.so.3 /opt/HyperLightDrifter/HyperLightDrifter.x86