summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchcrack2021-01-28 03:47:55 -0300
committerarchcrack2021-01-28 03:47:55 -0300
commitf251a15c45dd8f7fa62a40a48d4a0a8821988f62 (patch)
tree9b294d5304156959a2903d1f32b769088fcfeaec
parent0becc83c46b3edc376c57bb28ee8430fe6a6d381 (diff)
downloadaur-f251a15c45dd8f7fa62a40a48d4a0a8821988f62.tar.gz
Fixed pkgname
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD21
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef3360931bb..4968ef3a2e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index f4ac0446cf6..80b14c5c02b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}