diff options
author | gustawho | 2022-07-01 23:57:47 -0600 |
---|---|---|
committer | gustawho | 2022-07-01 23:57:47 -0600 |
commit | c9914a430cbef249ff56cdb9495edff06ffdf484 (patch) | |
tree | 328c95fb6a9572297ac70ad8f2049db209a49256 | |
parent | d372283c35ae532bafb7fbc5ba529033c8c8a5cb (diff) | |
download | aur-c9914a430cbef249ff56cdb9495edff06ffdf484.tar.gz |
PKGBUILD format
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = libqofono-git pkgdesc = A library for accessing the ofono daemon, and a declarative plugin for it. - pkgver = 0.103.r0.g047b667 + pkgver = 0.1.r242.gb5f738b pkgrel = 1 url = https://git.sailfishos.org/mer-core/libqofono arch = x86_64 @@ -20,4 +20,3 @@ pkgbase = libqofono-git sha512sums = SKIP pkgname = libqofono-git - @@ -1,7 +1,7 @@ # Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > pkgname=libqofono-git -pkgver=0.103.r0.g047b667 +pkgver=0.1.r242.gb5f738b pkgrel=1 arch=('x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') pkgdesc="A library for accessing the ofono daemon, and a declarative plugin for it." @@ -17,8 +17,8 @@ sha512sums=('SKIP') pkgver() { cd "${pkgname%-git}" ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + 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' ) } @@ -35,4 +35,4 @@ build() { package() { cd "${pkgname%-git}"/build INSTALL_ROOT="${pkgdir}" make install -}
\ No newline at end of file +} |