summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Case2015-08-11 13:04:28 -0400
committerNathaniel Case2015-08-11 13:04:28 -0400
commit1a83571947d17f5b902aa270b168d7e5b50387cb (patch)
treed08c185aa1ff81a4665a4a9cca020d5c0322655c
downloadaur-kolmafia-svn.tar.gz
Initial migration to AUR4
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD37
-rw-r--r--kol2
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..67c00e636d1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = kolmafia-svn
+ pkgdesc = An alternate interface to the online adventure game 'Kingdom of Loathing'.
+ pkgver = 15495
+ pkgrel = 1
+ url = http://kolmafia.sourceforge.net/
+ arch = any
+ license = BSD
+ makedepends = apache-ant
+ makedepends = subversion
+ depends = java-runtime
+ depends = bash
+ provides = kolmafia
+ conflicts = kolmafia
+ source = kol
+ source = kolmafia-svn::svn+svn://svn.code.sf.net/p/kolmafia/code/
+ md5sums = 6ebefe8fd7b178b73bfeb3c62256738f
+ md5sums = SKIP
+
+pkgname = kolmafia-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1bd44a5589
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Simon Hollingshead <me at [firstnamelastname] dot com>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+
+pkgname=kolmafia-svn
+_pkgname=kolmafia
+pkgver=15495
+pkgrel=1
+pkgdesc="An alternate interface to the online adventure game 'Kingdom of Loathing'."
+arch=('any')
+url="http://kolmafia.sourceforge.net/"
+license=('BSD')
+depends=('java-runtime' 'bash')
+makedepends=('apache-ant' 'subversion')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=('kol' "$pkgname::svn+svn://svn.code.sf.net/p/kolmafia/code/")
+md5sums=('6ebefe8fd7b178b73bfeb3c62256738f' 'SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ local ver="$(svnversion)"
+ printf "${ver//[[:alpha:]]}"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ ant daily desktop
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -D -m644 "dist/KoLmafia-$pkgver.jar" "$pkgdir/usr/share/java/$_pkgname/$_pkgname.jar"
+ install -D -m755 "$srcdir/kol" "$pkgdir/usr/bin/kol"
+ install -D -m644 "build/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
+ install -D -m644 "src/licenses/kolmafia-license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 "util/debian/kol.xpm" "$pkgdir/usr/share/pixmaps/kol.xpm"
+}
diff --git a/kol b/kol
new file mode 100644
index 00000000000..70187d246ab
--- /dev/null
+++ b/kol
@@ -0,0 +1,2 @@
+#!/bin/sh
+"$JAVA_HOME/bin/java" -jar '/usr/share/java/kolmafia/kolmafia.jar' "$@" \ No newline at end of file