summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera2015-06-09 02:27:29 -0300
committerHugo Osvaldo Barrera2015-06-09 02:28:40 -0300
commit479d0c5b4eff461243e346a34b53184363639b8a (patch)
treea1443c3a4fcf21eaddfcf88731ad70e00a1c210d
downloadaur-479d0c5b4eff461243e346a34b53184363639b8a.tar.gz
Initial commit.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD43
-rw-r--r--dontstarve.desktop10
-rwxr-xr-xdontstarve.sh3
4 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..696fc86b400
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = dontstarve
+ pkgdesc = An open world survival video game.
+ pkgver = july21
+ pkgrel = 1
+ url = http://www.dontstarvegame.com/
+ arch = i686
+ arch = x86_64
+ license = Custom
+ options = !strip
+ source = dontstarve_x64_july21.tar.gz::https://download-it-manually
+ source = http://curl.haxx.se/download/curl-7.23.0.tar.gz
+ source = dontstarve.sh
+ source = dontstarve.desktop
+ md5sums = 20907561ae855bb08d919c59d18b2a82
+ md5sums = 018a9acee77ed70017c6f6cec855635a
+ md5sums = f2949327f3778ffbefb68fb61c10aee7
+ md5sums = e1211feede8e6b0ce174cd56517f4689
+
+pkgname = dontstarve
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2120ffbb494
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
+
+pkgname=dontstarve
+pkgver=july21
+_curlver=7.23.0
+pkgrel=1
+pkgdesc="An open world survival video game."
+group=("games")
+arch=("i686" "x86_64")
+url="http://www.dontstarvegame.com/"
+license=('Custom')
+options=(!strip)
+source=("${pkgname}_x64_$pkgver.tar.gz::https://download-it-manually"
+ "http://curl.haxx.se/download/curl-${_curlver}.tar.gz"
+ "dontstarve.sh"
+ "dontstarve.desktop")
+md5sums=('20907561ae855bb08d919c59d18b2a82'
+ '018a9acee77ed70017c6f6cec855635a'
+ 'f2949327f3778ffbefb68fb61c10aee7'
+ 'e1211feede8e6b0ce174cd56517f4689')
+PKGEXT=".pkg.tar"
+
+build() {
+ cd "$srcdir/curl-${_curlver}"
+
+ ./configure
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ install -Dm 644 dontstarve.xpm "$pkgdir/usr/share/icons/dontstarve.xpm"
+ install -Dm 644 ../dontstarve.desktop "$pkgdir/usr/share/applications/dontstarve.desktop"
+
+ install -dm 755 "$pkgdir/opt/dontstarve/"
+ find . -type f -exec install -D {} "$pkgdir/opt/dontstarve/{}" \;
+
+ install -dm 755 "$pkgdir/usr/bin"
+ install -Dm 755 ../dontstarve.sh "$pkgdir/usr/bin/dontstarve"
+
+ install -Dm 644 "$srcdir/curl-${_curlver}/lib/.libs/libcurl.so.4" "${pkgdir}/opt/dontstarve/bin/lib64"
+}
diff --git a/dontstarve.desktop b/dontstarve.desktop
new file mode 100644
index 00000000000..79787842171
--- /dev/null
+++ b/dontstarve.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Don't Starve
+GenericName=Survival Game
+Comment=An open world survival video game
+Icon=dontstarve
+Exec=/usr/bin/dontstarve
+Path=/opt/dontstarve/
+Categories=Game;SurvivalGame;
diff --git a/dontstarve.sh b/dontstarve.sh
new file mode 100755
index 00000000000..0665813e00f
--- /dev/null
+++ b/dontstarve.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/dontstarve/bin
+./dontstarve.sh