summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2013-10-29 03:49:19 +0100
committerCarsten Teibes2013-10-29 03:49:19 +0100
commitf45d66238d55de8680c6b13ab3dc700464f7d484 (patch)
tree8196130e3678d4ea3824cfc154ca9e888503792b
downloadaur-f45d66238d55de8680c6b13ab3dc700464f7d484.tar.gz
[add] dunelegacy-git
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
-rw-r--r--dunelegacy-git.install13
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e62307a8eb9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = dunelegacy-git
+ pkgdesc = Updated clone of Westood Studios' Dune2 (Git version)
+ pkgver = v0.96.3.8.g319cb34
+ pkgrel = 1
+ url = http://dunelegacy.sourceforge.net
+ install = dunelegacy-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ depends = sdl_mixer
+ provides = dunelegacy
+ conflicts = dunelegacy
+ source = dunelegacy::git+https://dunelegacy.git.sourceforge.net/gitroot/dunelegacy/dunelegacy
+ md5sums = SKIP
+ sha256sums = SKIP
+
+pkgname = dunelegacy-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..26996e6fc59
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: carstene1ns <arch carsten-teibes de>
+
+_pkgbase=dunelegacy
+pkgname=$_pkgbase-git
+pkgver=v0.96.3.8.g319cb34
+pkgrel=1
+pkgdesc="Updated clone of Westood Studios' Dune2 (Git version)"
+arch=('i686' 'x86_64')
+url="http://dunelegacy.sourceforge.net"
+license=('GPL2')
+depends=('sdl_mixer')
+makedepends=('git')
+conflicts=("$_pkgbase")
+provides=("$_pkgbase")
+install=$pkgname.install
+source=($_pkgbase::"git+https://dunelegacy.git.sourceforge.net/gitroot/dunelegacy/dunelegacy")
+sha256sums=('SKIP')
+md5sums=('SKIP')
+
+pkgver() {
+ cd $_pkgbase
+
+ local ver="$(git describe --long)"
+ printf "%s" "${ver//-/.}"
+}
+
+build() {
+ cd $_pkgbase
+
+ autoreconf --install
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $_pkgbase
+
+ make DESTDIR="$pkgdir" install
+
+ # install icon and desktop files
+ install -Dm644 $_pkgbase.png "$pkgdir/usr/share/pixmaps/$_pkgbase.png"
+ install -Dm644 $_pkgbase.desktop "$pkgdir/usr/share/applications/$_pkgbase.desktop"
+}
diff --git a/dunelegacy-git.install b/dunelegacy-git.install
new file mode 100644
index 00000000000..88798b76805
--- /dev/null
+++ b/dunelegacy-git.install
@@ -0,0 +1,13 @@
+
+post_install() {
+ # updates for our .desktop file
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}