diff options
author | archcrack | 2021-01-28 01:08:30 -0300 |
---|---|---|
committer | archcrack | 2021-01-28 01:08:30 -0300 |
commit | 0becc83c46b3edc376c57bb28ee8430fe6a6d381 (patch) | |
tree | 74008dc45451e410ab91568d00eaf8ac60f8c74c | |
parent | fb0b2b759dfcfce846283385950ae6d4a993dbac (diff) | |
download | aur-0becc83c46b3edc376c57bb28ee8430fe6a6d381.tar.gz |
Added pkgver function
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = clifm-git - pkgdesc = The KISS file manager: cli-based, ultra-lightweight, and lightning fast (development version) + pkgdesc = The KISS file manager: cli-based, ultra-lightweight, and lightning fast pkgver = 0.27.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/leo-arch/clifm arch = any license = GPL2 @@ -2,8 +2,8 @@ pkgname=clifm-git pkgver=0.27.1 -pkgrel=2 -pkgdesc="The KISS file manager: cli-based, ultra-lightweight, and lightning fast (development version)" +pkgrel=3 +pkgdesc="The KISS file manager: cli-based, ultra-lightweight, and lightning fast" arch=(any) url="https://github.com/leo-arch/clifm" license=(GPL2) @@ -13,6 +13,11 @@ optdepends=('sshfs: SFTP support' 'cifs-utils: Samba support' 'curlftpfs: FTPFS 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' +} + build() { cd "$srcdir/${pkgname%%-*}" gcc -O3 -march=native -s -fstack-protector-strong -o "${pkgname%%-*}" "${pkgname%%-*}.c" -lreadline -lacl -lcap |