diff options
author | Alex Szczuczko | 2016-02-24 22:55:01 +0000 |
---|---|---|
committer | Alex Szczuczko | 2016-02-24 22:55:01 +0000 |
commit | a86df494a8fc13c6c1218c41b42b7e322d912303 (patch) | |
tree | 6dff6e661594d55345d6ca9f267b6e6addb0ab9f | |
parent | 485b661c96ed984657dc2d9cba46ef6c3cfa47bd (diff) | |
download | aur-a86df494a8fc13c6c1218c41b42b7e322d912303.tar.gz |
Add launcher to work around CWD regression
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | launch.sh | 3 |
3 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Wed Feb 24 22:49:20 UTC 2016 +# Wed Feb 24 22:53:54 UTC 2016 pkgbase = wasteland2 pkgdesc = The Director's Cut of the sequel to an adventure in post-nuclear America pkgver = 2.3.0.5 @@ -22,8 +22,10 @@ pkgbase = wasteland2 depends = pulseaudio noextract = gog_wasteland_2_director_s_cut_2.3.0.5.sh source = wasteland2.desktop + source = launch.sh source = gog_wasteland_2_director_s_cut_2.3.0.5.sh::file://gog_wasteland_2_director_s_cut2.3.0.5.sh sha256sums = 1400b3e11c34cbfc57e3b5cba9501a3319ddb57f066d9d09bb7799a59fb0efc0 + sha256sums = 82a9de0502e5e48df2dbf589a952ccc60ab790978594d600c986e02f00443920 sha256sums = 50646ca22f72fbd0eaf4c64b36bd53a2eecc5117a9d21e60253799b81412c3d6 pkgname = wasteland2 @@ -9,10 +9,12 @@ url="https://wasteland.inxile-entertainment.com/store" license=("custom:commercial") depends=('glibc' 'glu' 'libx11' 'libxau' 'libxcb' 'libxcursor' 'libxdmcp' 'libxext' 'libxfixes' 'libxrandr' 'libxrender' 'libgl' 'pulseaudio') source=("${pkgname}.desktop" + "launch.sh" "gog_wasteland_2_director_s_cut_${pkgver}.sh::file://gog_wasteland_2_director_s_cut${pkgver}.sh") # bsdtar doesn't seem to like this .sh noextract=("gog_wasteland_2_director_s_cut_${pkgver}.sh") sha256sums=("1400b3e11c34cbfc57e3b5cba9501a3319ddb57f066d9d09bb7799a59fb0efc0" + "82a9de0502e5e48df2dbf589a952ccc60ab790978594d600c986e02f00443920" "50646ca22f72fbd0eaf4c64b36bd53a2eecc5117a9d21e60253799b81412c3d6") # Disable compression of the package @@ -26,6 +28,7 @@ prepare() { package() { # Binaries install -Dm755 "$srcdir/Wasteland 2/game/WL2" "$pkgdir/opt/$pkgname/game/WL2" + install -m755 "$srcdir/launch.sh" "$pkgdir/opt/$pkgname/game/launch.sh" # Data # Hardlink files to save the disk space and time spent copying them (they are very large) @@ -48,7 +51,7 @@ package() { # /bin install -m755 -d "$pkgdir/usr/bin/" - ln -s "/opt/$pkgname/game/WL2" "$pkgdir/usr/bin/$pkgname" + ln -s "/opt/$pkgname/game/launch.sh" "$pkgdir/usr/bin/$pkgname" # License install -m755 -d "$pkgdir/usr/share/licenses/$pkgname/" diff --git a/launch.sh b/launch.sh new file mode 100644 index 000000000000..ae6d402f8e1b --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd "/opt/wasteland2/game" +exec "./WL2" "$@" |