summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortomKPZ2019-05-11 14:19:23 -0700
committertomKPZ2019-05-11 14:19:23 -0700
commit8bfdae789d0f00f6ac8fc36559b2cd134e3a0fb7 (patch)
treec6cd2d7f198fcf1508d58f181a340ff56e89545f /PKGBUILD
parent07287dfc787d7c7e4a98a46b194f1e8413d62d94 (diff)
downloadaur-8bfdae789d0f00f6ac8fc36559b2cd134e3a0fb7.tar.gz
Add _pkgname
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ba65da3caf8..1bb1056e425 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
-pkgname=x-active-window-indicator-git
+_pkgname=x-active-window-indicator
+pkgname=${_pkgname}-git
pkgver=r103.0f2c386
pkgrel=1
pkgdesc="An X11 utility that signals the active window"
@@ -12,17 +13,17 @@ source=("git+https://github.com/tomKPZ/x-active-window-indicator.git")
md5sums=("SKIP")
pkgver() {
- cd "$srcdir/${pkgname}"
+ cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/${pkgname}"
+ cd "$srcdir/${_pkgname}"
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd "$srcdir/${pkgname}"
+ cd "$srcdir/${_pkgname}"
make DESTDIR="$pkgdir" install
}