diff options
author | archcrack | 2021-01-28 03:47:55 -0300 |
---|---|---|
committer | archcrack | 2021-01-28 03:47:55 -0300 |
commit | f251a15c45dd8f7fa62a40a48d4a0a8821988f62 (patch) | |
tree | 9b294d5304156959a2903d1f32b769088fcfeaec | |
parent | 0becc83c46b3edc376c57bb28ee8430fe6a6d381 (diff) | |
download | aur-f251a15c45dd8f7fa62a40a48d4a0a8821988f62.tar.gz |
Fixed pkgname
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 12 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = clifm-git pkgdesc = The KISS file manager: cli-based, ultra-lightweight, and lightning fast pkgver = 0.27.1 - pkgrel = 3 + pkgrel = 1 url = https://github.com/leo-arch/clifm arch = any license = GPL2 @@ -1,8 +1,9 @@ # Maintainer: archcrack <johndoe.arch@outlook.com> pkgname=clifm-git +_pkgname=clifm pkgver=0.27.1 -pkgrel=3 +pkgrel=1 pkgdesc="The KISS file manager: cli-based, ultra-lightweight, and lightning fast" arch=(any) url="https://github.com/leo-arch/clifm" @@ -14,19 +15,19 @@ source=("git+${url}.git") sha256sums=('SKIP') pkgver() { - cd "$srcdir/${pkgname%%-*}" - curl -s "https://raw.githubusercontent.com/leo-arch/${pkgname%%-*}/master/${pkgname%%-*}.c" | grep "#define VERSION" | cut -d" " -f3 | sed 's/"//g' + cd "$srcdir/$_pkgname" + curl -s "https://raw.githubusercontent.com/leo-arch/$_pkgname/master/${_pkgname}.c" | grep "#define VERSION" | cut -d" " -f3 | sed 's/"//g' } build() { - cd "$srcdir/${pkgname%%-*}" - gcc -O3 -march=native -s -fstack-protector-strong -o "${pkgname%%-*}" "${pkgname%%-*}.c" -lreadline -lacl -lcap + cd "$srcdir/$_pkgname" + gcc -O3 -march=native -s -fstack-protector-strong -o "$_pkgname" "${_pkgname}.c" -lreadline -lacl -lcap } package() { - cd "$srcdir/${pkgname%%-*}" - install -Dm755 "${pkgname%%-*}" "$pkgdir/usr/bin/${pkgname%%-*}" - install -g 0 -o 0 -Dm644 manpage "$pkgdir/usr/share/man/man1/${pkgname%%-*}.1" - gzip "${pkgdir}/usr/share/man/man1/${pkgname%%-*}.1" - install -g 0 -o 0 -Dm644 "translations/spanish/${pkgname%%-*}.mo" "$pkgdir/usr/share/locale/es/LC_MESSAGES/${pkgname%%-*}.mo" + cd "$srcdir/$_pkgname" + install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname" + install -g 0 -o 0 -Dm644 manpage "$pkgdir/usr/share/man/man1/${_pkgname}.1" + gzip "$pkgdir/usr/share/man/man1/$_pkgname.1" + install -g 0 -o 0 -Dm644 "translations/spanish/${_pkgname}.mo" "$pkgdir/usr/share/locale/es/LC_MESSAGES/${_pkgname}.mo" } |