summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 9 insertions, 11 deletions
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: