diff options
author | franckinux | 2016-03-16 12:22:25 +0100 |
---|---|---|
committer | franckinux | 2016-03-16 12:22:25 +0100 |
commit | ff32d5757e23c9a8dae672c372407bc5115ab4b0 (patch) | |
tree | 67a33034e447efe0ce1cc68301865929daf49458 | |
download | aur-ff32d5757e23c9a8dae672c372407bc5115ab4b0.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | syasokoban.patch | 36 |
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2c06de065118 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = syasokoban + pkgdesc = Still Yet Another Sokoban + pkgver = 2.0.1 + pkgrel = 1 + url = http://grayskygames.com/sokoban.html + arch = i686 + arch = x86_64 + license = GPL + depends = sdl + source = http://grayskygames.com/sokoban/syasokoban-2.0.1.tar.gz + source = syasokoban.patch + md5sums = 3735ea7f164587165d4d03805a87b1a5 + md5sums = ae55b562a3b3b0a87bf139d58d1897ea + +pkgname = syasokoban + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5421c270d28b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Contributor: Franck Barbenoire <contact@franck-barbenoire.fr> + +pkgname=syasokoban +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Still Yet Another Sokoban" +arch=('i686' 'x86_64') +license=('GPL') +url="http://grayskygames.com/sokoban.html" +depends=('sdl') +source=( + "http://grayskygames.com/sokoban/$pkgname-$pkgver.tar.gz" + "$pkgname.patch" +) + +md5sums=( + '3735ea7f164587165d4d03805a87b1a5' + 'ae55b562a3b3b0a87bf139d58d1897ea' +) + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p 1 < $srcdir/"$pkgname.patch" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -D -m755 "$srcdir/$pkgname-$pkgver/syasokoban" "$pkgdir/usr/bin/syasokoban" + install -D -m644 "$srcdir/$pkgname-$pkgver/README.txt" "$pkgdir/usr/share/doc/syasokoban/README.txt" + mkdir -p "$pkgdir/usr/share/syasokoban" + cp -R data/* "$pkgdir/usr/share/syasokoban" +} diff --git a/syasokoban.patch b/syasokoban.patch new file mode 100644 index 000000000000..7e525c817237 --- /dev/null +++ b/syasokoban.patch @@ -0,0 +1,36 @@ +diff -ru syasokoban-2.0.1.orig/src/Main.cpp syasokoban-2.0.1/src/Main.cpp +--- syasokoban-2.0.1.orig/src/Main.cpp 2007-07-21 22:22:10.000000000 +0200 ++++ syasokoban-2.0.1/src/Main.cpp 2016-03-16 09:40:33.094285986 +0100 +@@ -10,6 +10,7 @@ + #include "GameRegistry.h"
+ #include "Games.h"
+ #include <stdlib.h>
++#include <unistd.h>
+
+ bool g_bMustRedraw = true;
+
+diff -ru syasokoban-2.0.1.orig/src/djSettings.cpp syasokoban-2.0.1/src/djSettings.cpp +--- syasokoban-2.0.1.orig/src/djSettings.cpp 2007-07-21 22:22:10.000000000 +0200 ++++ syasokoban-2.0.1/src/djSettings.cpp 2016-03-16 09:49:44.686833463 +0100 +@@ -6,7 +6,9 @@ + //---------------------------------------------------------------------------
+ #include "djSettings.h"
+ #include "djUtils.h"
++#include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+
+ char g_szConfigFile[2048] = { 0 };
+
+diff -ru syasokoban-2.0.1.orig/src/djDesktop.cpp syasokoban-2.0.1/src/djDesktop.cpp +--- syasokoban-2.0.1.orig/src/djDesktop.cpp 2007-07-21 22:22:10.000000000 +0200 ++++ syasokoban-2.0.1/src/djDesktop.cpp 2016-03-16 10:17:44.332718779 +0100 +@@ -15,7 +15,7 @@ +
+ std::string GetDataPath()
+ {
+- return std::string("data/");
++ return std::string("/usr/share/syasokoban/");
+ }
+
+ CdjDesktop::CdjDesktop()
|