summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD41
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d8f7eed743c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = steamworlddig
+ pkgdesc = A platform mining adventure with strong Metroidvanian influences.
+ pkgver = 1.10
+ pkgrel = 2
+ epoch = 1393468453
+ url = http://steamworldgames.com/dig/
+ arch = x86_64
+ arch = i686
+ license = custom:commercial
+ source = hib://SteamWorldDig_linux_1393468453.tar.gz
+ sha512sums = 949ab0a7deef14a4ce28d18c40e63d4ac444fa2c53a5b2ed63af118ccfee3e9a7d4bd2d5900036da57bb0bc7db81cbe50aa6ea4e7682abe7c33fb4b53a53c9cb
+ depends_x86_64 = lib32-glew
+ depends_x86_64 = lib32-libogg
+ depends_x86_64 = lib32-libpng
+ depends_x86_64 = lib32-libvorbis
+ depends_x86_64 = lib32-openal
+ depends_x86_64 = lib32-sdl
+ depends_i686 = glew
+ depends_i686 = libogg
+ depends_i686 = libpng
+ depends_i686 = libvorbis
+ depends_i686 = openal
+ depends_i686 = sdl
+
+pkgname = steamworlddig
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a4d50dc806
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Philip Abernethy<chais.z3r0@gmail.com>
+pkgname=steamworlddig
+pkgver=1.10
+epoch=1393468453
+pkgrel=2
+pkgdesc="A platform mining adventure with strong Metroidvanian influences."
+url="http://steamworldgames.com/dig/"
+arch=('x86_64' 'i686')
+license=('custom:commercial')
+depends_x86_64=('lib32-glew' 'lib32-libogg' 'lib32-libpng' 'lib32-libvorbis' 'lib32-openal' 'lib32-sdl')
+depends_i686=('glew' 'libogg' 'libpng' 'libvorbis' 'openal' 'sdl')
+
+DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
+source=("hib://SteamWorldDig_linux_${epoch}.tar.gz")
+sha512sums=('949ab0a7deef14a4ce28d18c40e63d4ac444fa2c53a5b2ed63af118ccfee3e9a7d4bd2d5900036da57bb0bc7db81cbe50aa6ea4e7682abe7c33fb4b53a53c9cb')
+
+package() {
+ cd "${srcdir}/SteamWorldDig"
+ find BundlePC -type d -exec install -dm755 "${pkgdir}/opt/${pkgname}/"{} \;
+ find BundlePC -type f -exec install -m644 {} "${pkgdir}/opt/${pkgname}/"{} \;
+ install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/${pkgname}.png
+ ln -s /usr/share/pixmaps/${pkgname}.png "${pkgdir}"/opt/${pkgname}/icon.png
+ install -m755 SteamWorldDig "${pkgdir}"/opt/${pkgname}/
+ install -Dm644 readme.txt "${pkgdir}"/usr/share/doc/${pkgname}/readme.txt
+ install -dm755 "${pkgdir}"/usr/bin
+ echo "\#!/usr/bin/env sh
+cd /opt/${pkgname}
+./SteamWorldDig" > "${pkgdir}"/usr/bin/${pkgname}
+ chmod 755 "${pkgdir}"/usr/bin/${pkgname}
+ install -dm755 "${pkgdir}"/usr/share/applications
+ echo "[Desktop Entry]
+Encoding=UTF-8
+Name=SteamWorld Dig
+Comment=${pkgdesc}
+Type=Application
+Exec=\"${pkgname}\"
+TryExec=${pkgname}
+Icon=${pkgname}
+Categories=Game;AdventureGame;" > "${pkgdir}"/usr/share/applications/imageform-SteamWorldDig.desktop
+ chmod 644 "${pkgdir}"/usr/share/applications/imageform-SteamWorldDig.desktop
+}