diff options
author | Christian Hesse | 2022-03-15 20:52:58 +0100 |
---|---|---|
committer | Christian Hesse | 2022-03-15 20:52:58 +0100 |
commit | 3f8a0070b13038423a76dd96e615590c432e327e (patch) | |
tree | 8966405c1e7723eb29f4e7080876959509de3b3d /PKGBUILD | |
parent | 77398958fd49352284df7d0fceee7125d77a182b (diff) | |
download | aur-3f8a0070b13038423a76dd96e615590c432e327e.tar.gz |
commit cqrlogo-git 0.5.5.r1.gb2bc264-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -1,18 +1,18 @@ # Maintainer: Christian Hesse <mail@eworm.de> pkgname=cqrlogo-git -pkgver=0.5.3.r0.g485ef31 +pkgver=0.5.5.r1.gb2bc264 pkgrel=1 -pkgdesc="CGI QR-Code logo for web services - git checkout" +pkgdesc='CGI QR-Code logo for web services - git checkout' arch=('i686' 'x86_64') -url="https://github.com/eworm-de/cqrlogo" +url='https://github.com/eworm-de/cqrlogo' depends=('iniparser' 'libpng' 'qrencode') -makedepends=('fcgi' 'git' 'markdown') +makedepends=('fcgi' 'git' 'discount') optdepends=('apache: for apache web server inclusion' - 'fcgi: for FastCGI version' - 'lighttpd: for lighttpd web server inclusion' - 'mod_fastcgi: for fastcgi in apache web server' - 'mod_fcgid: for fastcgi in apache web server') + 'fcgi: for FastCGI version' + 'lighttpd: for lighttpd web server inclusion' + 'mod_fastcgi: for fastcgi in apache web server' + 'mod_fcgid: for fastcgi in apache web server') conflicts=('cqrlogo') provides=('cqrlogo') checkdepends=('zbar' 'pngcheck') @@ -21,16 +21,21 @@ install=cqrlogo.install backup=('etc/cqrlogo.conf' 'etc/httpd/conf/extra/cqrlogo.conf' 'etc/lighttpd/conf.d/cqrlogo.conf') -source=('git://github.com/eworm-de/cqrlogo.git') +source=('git+https://github.com/eworm-de/cqrlogo.git') sha256sums=('SKIP') pkgver() { cd cqrlogo/ 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 rev-parse --short HEAD)" 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 rev-parse --short HEAD)" fi } |