summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgaelic2017-02-20 10:24:32 +0100
committergaelic2017-02-20 10:24:32 +0100
commit6b66942fadcfb7c0ee6235bf498b706e903bb4a5 (patch)
tree4f1bf1511b7fc5510c2f392ea91a059b2e79ec33
downloadaur-6b66942fadcfb7c0ee6235bf498b706e903bb4a5.tar.gz
init pkg
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a14171c4e72
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Feb 20 09:24:17 UTC 2017
+pkgbase = opendune
+ pkgdesc = Open source re-creation of the popular game Dune II
+ pkgver = 0.8
+ pkgrel = 1
+ url = http://opendune.org
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = sdl
+ depends = alsa-lib
+ optdepends = timidity++: midi music support
+ provides = opendune
+ source = https://github.com/OpenDUNE/OpenDUNE/archive/0.8.tar.gz
+ sha256sums = fada4127715e4913553f4dbe8b5ac284ee6080377da62e65ae03f1e1d551dfbd
+
+pkgname = opendune
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..600fdb3e996
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+
+pkgname=opendune
+_pkgname=OpenDUNE
+pkgver=0.8
+pkgrel=1
+pkgdesc="Open source re-creation of the popular game Dune II"
+arch=('i686' 'x86_64')
+url="http://opendune.org"
+license=('GPL2')
+depends=('sdl' 'alsa-lib')
+optdepends=('timidity++: midi music support')
+provides=('opendune')
+source=("https://github.com/OpenDUNE/OpenDUNE/archive/$pkgver.tar.gz")
+sha256sums=('fada4127715e4913553f4dbe8b5ac284ee6080377da62e65ae03f1e1d551dfbd')
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+ sed -i "s/flags\=\"\$flags\ \-ansi\ \-pedantic\"/:/" config.lib
+ ./configure #--without-pulse
+ make
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+ #make DESTDIR="$pkgdir/" install
+ mkdir -p $pkgdir/opt/$_pkgname/bin
+ mv bin/opendune $pkgdir/opt/$_pkgname/bin
+ mv bin/opendune.ini.sample $pkgdir/opt/$_pkgname
+ mkdir $pkgdir/opt/$_pkgname/data
+}
+