summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchcrack2021-01-27 23:53:45 -0300
committerarchcrack2021-01-27 23:53:45 -0300
commitdc90fcd5f06b0b349f29d52c059610303e3eca9c (patch)
tree470d74af9905de6016678d6224c714e42fcac625
parentdc3b458bfb2e767bd9a6a5caeff9cd6c47bf1f6d (diff)
downloadaur-dc90fcd5f06b0b349f29d52c059610303e3eca9c.tar.gz
Initial commit
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD16
2 files changed, 10 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4c857bcd24d..eec41ee251b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,4 +1,4 @@
-pkgbase = clifm
+pkgbase = clifm-git
pkgdesc = The KISS file manager: cli-based, ultra-lightweight, and lightning fast
pkgver = 0.27.1
pkgrel = 2
@@ -17,5 +17,5 @@ pkgbase = clifm
source = git+https://github.com/leo-arch/clifm.git
sha256sums = SKIP
-pkgname = clifm
+pkgname = clifm-git
diff --git a/PKGBUILD b/PKGBUILD
index 35cf870e0e6..16d63b2ae06 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: archcrack <johndoe.arch@outlook.com>
-pkgname=clifm
+pkgname=clifm-git
pkgver=0.27.1
pkgrel=2
pkgdesc="The KISS file manager: cli-based, ultra-lightweight, and lightning fast"
@@ -14,14 +14,14 @@ source=("git+${url}.git")
sha256sums=('SKIP')
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"
}