diff options
author | Chocobo1 | 2023-04-06 03:31:35 +0800 |
---|---|---|
committer | Chocobo1 | 2023-04-06 03:32:11 +0800 |
commit | 767a2c09064f5e539a59a6ecfec93c0253222cd4 (patch) | |
tree | 55841ea37a7e5886856e3c5e1b4eeed04b1f2f2b /PKGBUILD | |
parent | 61f6032e3a5a08d9f649443d293c027289de45c3 (diff) | |
download | aur-767a2c09064f5e539a59a6ecfec93c0253222cd4.tar.gz |
upgpkg: apache-git 2.4.56.r11191.g4859071fd0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=apache-git -pkgver=2.5.0.alpha.r2263.g939538607c +pkgver=2.4.56.r11191.g4859071fd0 pkgrel=1 pkgdesc="Provides useful functions commonly found on BSD systems" arch=('i686' 'x86_64') @@ -17,7 +17,7 @@ optdepends=('brotli: for mod_brotli module' 'lynx: apachectl status' 'perl: for apxs and dbmmanage' 'uwsgi: for mod_proxy_uwsgi module') -provides=('apache') +provides=("apache=$pkgver") conflicts=('apache') backup=('etc/httpd/conf/httpd.conf' 'etc/httpd/conf/extra'/httpd-{autoindex,dav,default,info,languages,manual,mpm,multilang-errordoc,ssl,userdir,vhosts}.conf @@ -50,10 +50,10 @@ prepare() { pkgver() { cd "httpd" - _tag=$(git tag -l --sort -v:refname | grep -m1 "^[0-9]") + _tag=$(git tag -l --sort -v:refname | grep -E '^[0-9\.]+$' | head -n1) _rev=$(git rev-list --count $_tag..HEAD) _hash=$(git rev-parse --short HEAD) - printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/-/./g' + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" } build() { |