summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCarsten Teibes2014-01-08 17:43:53 +0100
committerCarsten Teibes2014-01-08 17:43:53 +0100
commitb37cba3f8b70b5c3f9d7ab4a7d9427d225048018 (patch)
tree9817637333d9f18711546b74a2d0e2353ace15fc /PKGBUILD
parentf45d66238d55de8680c6b13ab3dc700464f7d484 (diff)
downloadaur-dunelegacy-git.tar.gz
[upd], [fix] Use better pkgver, new repository URL
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 8 insertions, 11 deletions
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
}