diff options
author | gustawho | 2022-07-01 23:58:02 -0600 |
---|---|---|
committer | gustawho | 2022-07-01 23:58:02 -0600 |
commit | c3bc2abe388354616114e177e7b795ebc662e9d2 (patch) | |
tree | 5fb2a5ab9148b3b38493eeba5907d4262dd536b0 /PKGBUILD | |
parent | faceace865a3f8cb64fe8bd052836029845524a3 (diff) | |
download | aur-libtd-git.tar.gz |
PKGBUILD format
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,7 +3,7 @@ # Previous Contributor: Felix Serrano Blanco <felixseblanc@gmail.com> pkgname=libtd-git -pkgver=1.7.0.r1935.g4eaae330 +pkgver=1.8.0.r896.gaeed6c45d pkgrel=1 pkgdesc='TDLib (Telegram Database library) is a cross-platform library for building Telegram clients (Git)' arch=('x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') @@ -18,7 +18,10 @@ sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + ( set -o pipefail + git describe --long --tags --first-parent --match 'v[0-9][0-9.][0-9.]*' | \ + sed 's=^v==;s=^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)=\1\2=;s=\([0-9]\+-g\)=r\1=;s=-=.=g' + ) } build() { |