summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorhaawda2018-04-24 15:40:52 +0200
committerhaawda2018-04-24 15:40:52 +0200
commit97e0a386115fddd54b00afb31b8834425f796b61 (patch)
treeed4c3a7b4f8e62f7921065ca77c7b381d1d1a5ff /PKGBUILD
parentf14ece8fba1fa67f114864f283358dd316b97414 (diff)
downloadaur-97e0a386115fddd54b00afb31b8834425f796b61.tar.gz
add some quoting
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 5 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bafa54051e3..d955c679835 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=fzy-git
-pkgver=r330.919bae5
+pkgver=r340.2be07b5
pkgrel=1
pkgdesc="A fuzzy text selector menu for the terminal"
arch=('i686' 'x86_64')
@@ -12,20 +12,19 @@ provides=('fzy')
conflicts=('fzy')
source=("git+https://github.com/jhawthorn/fzy.git")
md5sums=('SKIP')
-_gitname="fzy"
pkgver() {
- cd "$_gitname"
+ cd ${pkgname%-git}
printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
build() {
- cd "$srcdir"/"$_gitname"
+ cd ${pkgname%-git}
make PREFIX=/usr
}
package() {
- cd "$srcdir/$_gitname"
+ cd ${pkgname%-git}
make PREFIX=/usr DESTDIR="$pkgdir/" install
- install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}