diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 10 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = archfetch pkgdesc = Neofetch, but simplified. For Arch Linux. pkgver = 1.0.4 - pkgrel = 3 + pkgrel = 4 url = https://github.com/xxczaki/archfetch/ arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Antoni Kepinski <hello[at]akepinski[dot]me> pkgname=archfetch pkgver=1.0.4 -pkgrel=3 +pkgrel=4 pkgdesc="Neofetch, but simplified. For Arch Linux." url="https://github.com/xxczaki/archfetch/" arch=('i686' 'x86_64') @@ -10,16 +10,14 @@ depends=() makedepens=('git') source=("git+git://github.com/xxczaki/archfetch.git") -package() { - cd "${PKGMK_SOURCE_DIR}" - - if cd "${pkgname}"; then - git fetch -q - git reset --hard origin/master - else - git clone https://github.com/xxczaki/archfetch "${pkgname}" - cd "${pkgname}" - fi +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} +package() { + cd "${PKGMK_SOURCE_DIR}" && cd "${pkgname}" + git fetch -q + git reset --hard origin/master sudo install -Dm755 archfetch "${PKG}/usr/bin/archfetch" } |