summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-01-08 17:43:53 +0100
committerCarsten Teibes2014-01-08 17:43:53 +0100
commitb37cba3f8b70b5c3f9d7ab4a7d9427d225048018 (patch)
tree9817637333d9f18711546b74a2d0e2353ace15fc
parentf45d66238d55de8680c6b13ab3dc700464f7d484 (diff)
downloadaur-dunelegacy-git.tar.gz
[upd], [fix] Use better pkgver, new repository URL
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD19
-rw-r--r--dunelegacy-git.install9
3 files changed, 13 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e62307a8eb9..92569cf9d7a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dunelegacy-git
- pkgdesc = Updated clone of Westood Studios' Dune2 (Git version)
- pkgver = v0.96.3.8.g319cb34
+ pkgdesc = Updated clone of Westood Studios' Dune2 (development version)
+ pkgver = 0.96.3.r8.g319cb34
pkgrel = 1
url = http://dunelegacy.sourceforge.net
install = dunelegacy-git.install
@@ -11,9 +11,8 @@ pkgbase = dunelegacy-git
depends = sdl_mixer
provides = dunelegacy
conflicts = dunelegacy
- source = dunelegacy::git+https://dunelegacy.git.sourceforge.net/gitroot/dunelegacy/dunelegacy
+ source = dunelegacy::git+http://git.code.sf.net/p/dunelegacy/code
md5sums = SKIP
- sha256sums = SKIP
pkgname = dunelegacy-git
diff --git a/PKGBUILD b/PKGBUILD
index 26996e6fc59..bee3bcba53c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
-# Maintainer: carstene1ns <arch carsten-teibes de>
+# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
_pkgbase=dunelegacy
pkgname=$_pkgbase-git
-pkgver=v0.96.3.8.g319cb34
+pkgver=0.96.3.r8.g319cb34
pkgrel=1
-pkgdesc="Updated clone of Westood Studios' Dune2 (Git version)"
+pkgdesc="Updated clone of Westood Studios' Dune2 (development version)"
arch=('i686' 'x86_64')
url="http://dunelegacy.sourceforge.net"
license=('GPL2')
@@ -13,15 +13,12 @@ makedepends=('git')
conflicts=("$_pkgbase")
provides=("$_pkgbase")
install=$pkgname.install
-source=($_pkgbase::"git+https://dunelegacy.git.sourceforge.net/gitroot/dunelegacy/dunelegacy")
-sha256sums=('SKIP')
+source=($_pkgbase::"git+http://git.code.sf.net/p/dunelegacy/code")
md5sums=('SKIP')
pkgver() {
cd $_pkgbase
-
- local ver="$(git describe --long)"
- printf "%s" "${ver//-/.}"
+ git describe --long --tags | sed 's/v//;s/-/.r/;s/-/./g'
}
build() {
@@ -35,9 +32,9 @@ build() {
package() {
cd $_pkgbase
- make DESTDIR="$pkgdir" install
+ 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"
+ 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
index 88798b76805..027bf00a377 100644
--- a/dunelegacy-git.install
+++ b/dunelegacy-git.install
@@ -1,13 +1,8 @@
post_install() {
- # updates for our .desktop file
- update-desktop-database -q
+ echo "Remember you have to put your DUNEII datafiles under ~/.config/dunelegacy/data/"
}
post_upgrade() {
- post_install $1
-}
-
-post_remove() {
- post_install $1
+ post_install
}