summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e967cd33517..7aa744eef72 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: crian <crian84 at gmail dot com>
pkgname=dmenufm-git
-pkgver=r189.a132436
+pkgver=2.0.r0.ge658354
pkgrel=1
pkgdesc='A simple file manager using dmenu'
arch=('any')
@@ -9,17 +9,17 @@ url="https://github.com/huijunchen9260/dmenufm"
license=('GPL-3.0')
depends=('dmenu' 'xclip' 'wmctrl' 'unrar' 'cabextract' 'unzip' 'p7zip')
makedepends=('git')
-provides=('dmenufm')
-conflicts=('dmenufm')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/dmenufm"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/${pkgname%-git}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
- cd "$srcdir/dmenufm"
+ cd "$srcdir/${pkgname%-git}"
make install DESTDIR="$pkgdir" PREFIX='/usr'
}