From 8114b3019767634d551aa609a32b31d34cc4f50e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 10 Jul 2021 20:43:10 +0200 Subject: acme2certifier: 0.16.r5.g1e4f174-2 -> 0.17-1 --- acme2certifier/PKGBUILD | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) (limited to 'acme2certifier') diff --git a/acme2certifier/PKGBUILD b/acme2certifier/PKGBUILD index a92ade97d..25a3c7c09 100644 --- a/acme2certifier/PKGBUILD +++ b/acme2certifier/PKGBUILD @@ -1,9 +1,9 @@ # Maintainer: Erich Eckner pkgname=acme2certifier -pkgver=0.16.r5.g1e4f174 +pkgver=0.17 _commit="${pkgver##*.g}" -pkgrel=2 +pkgrel=1 pkgdesc='experimental acme server written in python' arch=('any') url='https://github.com/grindsa/acme2certifier' @@ -32,36 +32,11 @@ sha512sums=('SKIP' install="${pkgname}.install" pkgver() { - _line_revision="${_commit}" - while true; do - _version_line=$( - git -C "${pkgname}" archive "${_line_revision}" -- acme/version.py \ - | tar -Ox \ - | grep -n '^__version__\s*=' - ) - _line="${_version_line%%:*}" - _line_revision=$( - git -C "${pkgname}" blame -L"${_line},${_line}" "${_line_revision}" -- acme/version.py \ - | awk '{print $1}' - ) - if ! git -C "${pkgname}" archive "${_line_revision}^" -- acme/version.py \ - | tar -Ox \ - | grep -qxF "${_version_line#*:}"; then - break - fi - _line_revision="${_line_revision}^" - done - _version="${_version_line%\'*}" - _version="${_version##*\'}" - _version="${_version%-*}" - printf '%s.r%s.g%s' \ - "${_version}" \ - "$( - git -C "${pkgname}" rev-list --count "${_commit}" ^"${_line_revision}" - )" \ - "$( - git -C "${pkgname}" rev-parse --short "${_commit}" - )" + git -C "${pkgname}" describe --tags "${_commit}" \ + | sed ' + s/-/.r/ + s/-/./ + ' } #build() { @@ -85,7 +60,7 @@ package() { examples/nginx/acme2certifier.ini \ "${pkgdir}/etc/uwsgi/acme2certifier.ini" install -dm755 -o http -g http "${pkgdir}/var/lib/${pkgname}" - mv acme examples tools "${pkgdir}/var/lib/${pkgname}/" + mv acme_srv examples tools "${pkgdir}/var/lib/${pkgname}/" install -dm755 -o http -g http "${pkgdir}/var/lib/${pkgname}/acme/ca" install -Dm644 -t "${pkgdir}/var/lib/${pkgname}/examples/" "${srcdir}/ssl.conf" chown -R http:http "${pkgdir}/var/lib/${pkgname}" -- cgit v1.2.3-70-g09d2