summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2016-04-25 19:47:58 +0200
committerMichel Zou2016-04-25 19:47:58 +0200
commit021d520360423ed72e783fbf8ada0e3cc21d10d3 (patch)
tree1634a4b5fe081125aa465fc7193eedc1591cbcb0
downloadaur-021d520360423ed72e783fbf8ada0e3cc21d10d3.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8d79624125b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Apr 25 17:47:58 UTC 2016
+pkgbase = ned-et-les-maki-git
+ pkgdesc = Puzzle game with isometric 3d graphics inspired by Sokoban
+ pkgver = r1228.997110a
+ pkgrel = 1
+ url = http://geekygoblin.org/ned-et-les-maki/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ license = FAL
+ makedepends = maven
+ makedepends = git
+ depends = java-runtime
+ source = git+https://framagit.org/ggp/ned-et-les-maki.git
+ md5sums = SKIP
+
+pkgname = ned-et-les-maki-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ad1cd4a6cf3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+pkgname=ned-et-les-maki-git
+pkgver=r1228.997110a
+pkgrel=1
+pkgdesc='Puzzle game with isometric 3d graphics inspired by Sokoban'
+arch=('i686' 'x86_64')
+license=('MIT' 'FAL')
+url="http://geekygoblin.org/ned-et-les-maki/"
+depends=('java-runtime')
+makedepends=('maven' 'git')
+source=("git+https://framagit.org/ggp/ned-et-les-maki.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/ned-et-les-maki"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build()
+{
+ cd "$srcdir/ned-et-les-maki"
+ mvn package
+}
+
+package ()
+{
+ cd "$srcdir/ned-et-les-maki"
+ install -d "$pkgdir"/usr/bin
+ install -d "$pkgdir"/usr/share/java/ned-et-les-maki
+ install -m644 core/target/nedetlesmaki-*.jar "$pkgdir"/usr/share/java/ned-et-les-maki
+ install -m644 packages/generic/target/lib/*.jar "$pkgdir"/usr/share/java/ned-et-les-maki
+ cp -r assets packages/generic/target/natives "$pkgdir"/usr/share/java/ned-et-les-maki
+ echo "#!/bin/sh" > run
+ echo 'exec "$JAVA_HOME/bin/java" -Djava.library.path=/usr/share/java/ned-et-les-maki/natives -jar `ls /usr/share/java/ned-et-les-maki/nedetlesmaki-lwjgl-*.jar` "$@"' >> run
+ install -m755 run "$pkgdir"/usr/bin/nedetlesmaki
+ install -D -m644 packages/deb/src/launchers/nedetlesmaki.desktop "$pkgdir"/usr/share/applications/nedetlesmaki.desktop
+ sed -i "s|/opt/nedetlesmaki/data/|/usr/share/java/ned-et-les-maki/assets/|g" "$pkgdir"/usr/share/applications/nedetlesmaki.desktop
+}