diff options
author | Chocobo1 | 2022-09-30 12:01:00 +0800 |
---|---|---|
committer | Chocobo1 | 2022-09-30 12:03:16 +0800 |
commit | 8e059779b5f99311edcdd4fee778fc6e4d56c207 (patch) | |
tree | 1006378b70c9f1b6623345be587be2f6e2217aad /PKGBUILD | |
parent | f3453d55240788ae80f6ff300ef8cc830da65301 (diff) | |
download | aur-lynx-git.tar.gz |
upgpkg: lynx-git 2.9.0dev.10k.r714.g09edd94f-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,15 +1,15 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=lynx-git -pkgver=2.9.0dev.4h.r0.g05a10ac7 +pkgver=2.9.0dev.10k.r714.g09edd94f pkgrel=1 pkgdesc="The text web browser" arch=('i686' 'x86_64') url="https://lynx.invisible-island.net/lynx.html" license=('GPL') -depends=('glibc' 'libidn' 'openssl') +depends=('glibc' 'libidn2' 'ncurses' 'openssl') makedepends=('git') -provides=('lynx') +provides=("lynx=$pkgver") conflicts=('lynx') backup=('etc/lynx.cfg') source=("git+https://github.com/ThomasDickey/lynx-snapshots.git") @@ -19,7 +19,10 @@ sha256sums=('SKIP') pkgver() { cd "lynx-snapshots" - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g;s/_/./g' + _tag=$(git tag -l --sort -creatordate | 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/^v//;s/[-_]/./g' } build() { |