diff options
author | Christian Hesse | 2017-08-29 16:06:20 +0200 |
---|---|---|
committer | Christian Hesse | 2017-08-29 16:06:20 +0200 |
commit | 78b233d8dfa1781420a1c6688298624393be8026 (patch) | |
tree | 95314f61c1bebd84455e9a528e22a108e23f8ea6 /PKGBUILD | |
parent | 652445b05ff153050a5e30c57f11bfe2316b3fa6 (diff) | |
download | aur-78b233d8dfa1781420a1c6688298624393be8026.tar.gz |
commit mkinitcpio-git 23.r6.g32dbf89-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -3,7 +3,7 @@ # Maintainer: Thomas Bächler <thomas@archlinux.org> ([core] package) pkgname=mkinitcpio-git -pkgver=23.r2.g91b2125 +pkgver=23.r6.g32dbf89 pkgrel=1 pkgdesc='Modular initramfs image creation utility - git checkout' arch=('any') @@ -16,7 +16,7 @@ optdepends=('xz: Use lzma or xz compression for the initramfs image' 'lzop: Use lzo compression for the initramfs image' 'mkinitcpio-nfs-utils: Support for root filesystem on NFS') makedepends=('git' 'asciidoc') -provides=('mkinitcpio') +provides=("mkinitcpio=${pkgver}") conflicts=('mkinitcpio') backup=('etc/mkinitcpio.conf') source=('git://projects.archlinux.org/mkinitcpio.git') @@ -26,9 +26,14 @@ pkgver() { cd mkinitcpio/ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then - echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + printf '%s.r%s.g%s' \ + "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ + "$(git rev-list --count ${GITTAG}..)" \ + "$(git log -1 --format='%h')" else - echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + printf '0.r%s.g%s' \ + "$(git rev-list --count master)" \ + "$(git log -1 --format='%h')" fi } |