summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorderwinlu2015-06-30 07:54:20 +0200
committerderwinlu2015-06-30 07:54:20 +0200
commit5fafd7e02a0d162b2bddfd3b681713e6f87c0d41 (patch)
tree790643bf345833c0ab1af9688bb64580541a5b87
downloadaur-5fafd7e02a0d162b2bddfd3b681713e6f87c0d41.tar.gz
port to aur4
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD40
-rw-r--r--soundsense_run3
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38427ccc77a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = soundsense
+ pkgdesc = SoundSense is a sound-engine tool for Dwarf Fortress.
+ pkgver = 43_187
+ pkgrel = 3
+ url = http://df.zweistein.cz/soundsense/
+ arch = any
+ license = custom
+ depends = java-environment
+ depends = coreutils
+ source = http://df.zweistein.cz/soundsense/soundSense_43_187.zip
+ source = soundsense_run
+ md5sums = b3dfea9716e7bdfe05ca2c0f44f582d8
+ md5sums = 9584745318a6ae276feb72b08a1e35ef
+
+pkgname = soundsense
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b0ffdac060d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# MAINTAINER: winlu <derwinlu AT gmail DOT com>
+
+pkgname=soundsense
+pkgver=43_187
+pkgrel=3
+pkgdesc="SoundSense is a sound-engine tool for Dwarf Fortress."
+arch=("any")
+url="http://df.zweistein.cz/soundsense/"
+license=('custom')
+depends=("java-environment"
+ "coreutils")
+source=("http://df.zweistein.cz/soundsense/soundSense_$pkgver.zip"
+ "soundsense_run")
+md5sums=("b3dfea9716e7bdfe05ca2c0f44f582d8"
+ "9584745318a6ae276feb72b08a1e35ef")
+
+DEST="opt/soundsense/"
+
+package() {
+ mkdir -p ${pkgdir}/${DEST}
+ mkdir -p ${pkgdir}/usr/bin/
+ #fix line breaks
+ mv $srcdir/$pkgname/soundSense.sh $srcdir/$pkgname/soundSense.sh.dos
+ tr -d '\r' < $srcdir/$pkgname/soundSense.sh.dos > $srcdir/$pkgname/soundSense.sh
+ rm $srcdir/$pkgname/soundSense.sh.dos
+ #rm windows files
+ rm $srcdir/$pkgname/*.cmd
+ rm $srcdir/$pkgname/*.exe
+ #rm sources zip
+ rm $srcdir/$pkgname/soundSense_${pkgver}_source.zip
+ #copy over and set permissions
+ cp -r $srcdir/$pkgname/. ${pkgdir}/${DEST}
+ chown :games -R ${pkgdir}/${DEST}
+ find ${pkgdir}/${DEST}/ -type d -exec chmod 775 {} +
+ find ${pkgdir}/${DEST}/ -type f -exec chmod 664 {} +
+ find ${pkgdir}/${DEST}/ -type f -name "*.jar" -exec chmod 644 {} +
+ chmod 755 ${pkgdir}/${DEST}/soundSense.sh
+ #install soundsense script
+ install -Dm755 $srcdir/soundsense_run $pkgdir/usr/bin/soundsense
+}
diff --git a/soundsense_run b/soundsense_run
new file mode 100644
index 00000000000..4a29f657fee
--- /dev/null
+++ b/soundsense_run
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/soundsense/
+./soundSense.sh