summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Shparber2015-02-18 11:20:49 -0800
committerOleg Shparber2015-02-18 11:20:49 -0800
commit938c19788c17000993ae3fc4ff5e1dc4fc01391c (patch)
treea153e3dfb032c85252d975ab15624633c2d1f01e
parenta509249c43a98e5abc542bd71441f4856a907cac (diff)
downloadaur-938c19788c17000993ae3fc4ff5e1dc4fc01391c.tar.gz
awesome-git: Fix pkgver
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD15
2 files changed, 13 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9fdb0258cb2..7361e7a4654 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = awesome-git
pkgdesc = Highly configurable framework window manager
- pkgver = 3.5.6
- pkgrel = 2
+ pkgver = 3.5.2.315.gc9f08fb
+ pkgrel = 1
url = http://awesome.naquadah.org/
arch = i686
arch = x86_64
@@ -32,7 +32,7 @@ pkgbase = awesome-git
provides = notification-daemon
provides = awesome
backup = etc/xdg/awesome/rc.lua
- source = awesome-git-3.5.6::git://github.com/awesomeWM/awesome.git
+ source = awesome-git::git://github.com/awesomeWM/awesome.git
md5sums = SKIP
pkgname = awesome-git
diff --git a/PKGBUILD b/PKGBUILD
index bc7a6852e63..f2f57d392cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,8 +10,8 @@
_pkgname=awesome
pkgname=${_pkgname}-git
-pkgver=3.5.6
-pkgrel=2
+pkgver=3.5.2.315.gc9f08fb
+pkgrel=1
pkgdesc='Highly configurable framework window manager'
arch=('i686' 'x86_64')
url='http://awesome.naquadah.org/'
@@ -25,16 +25,21 @@ optdepends=('rlwrap: readline support for awesome-client'
'vicious: widgets for the Awesome window manager')
provides=('notification-daemon' 'awesome')
backup=('etc/xdg/awesome/rc.lua')
-source=("${pkgname}-${pkgver}::git://github.com/awesomeWM/awesome.git")
+source=("$pkgname::git://github.com/awesomeWM/awesome.git")
md5sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe | sed 's/^v//;s/-/./g'
+}
+
prepare() {
mkdir -p build
}
build() {
cd build
- cmake ../$pkgname-$pkgver \
+ cmake ../$pkgname \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc \
@@ -46,6 +51,6 @@ package() {
cd build
make DESTDIR="$pkgdir" install
- install -Dm644 "$srcdir"/$pkgname-$pkgver/awesome.desktop \
+ install -Dm644 "$srcdir"/$pkgname/awesome.desktop \
"$pkgdir/usr/share/xsessions/awesome.desktop"
}