diff options
author | Dan Beste | 2017-11-30 15:27:01 -0600 |
---|---|---|
committer | Dan Beste | 2017-11-30 15:28:31 -0600 |
commit | 62057bb7ec4bc26bc85d2ffea387b97f2831e511 (patch) | |
tree | 2a8cd626e62919192345fa07ca6fba48af90ee09 | |
parent | ce4d28dd9c990674a7e81675d2ab25e87e0a9a0b (diff) | |
download | aur-62057bb7ec4bc26bc85d2ffea387b97f2831e511.tar.gz |
v5.4.1.7.r1887.73c6a2ee50c
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 10 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = mono-git pkgdesc = Free implementation of the .NET platform including runtime and compiler - pkgver = r112577.5728865725b + pkgver = 5.4.1.7.r1887.73c6a2ee50c pkgrel = 1 url = http://www.mono-project.com/ install = mono.install @@ -12,6 +12,7 @@ pkgbase = mono-git license = GPL license = LGPL2.1 license = MPL + makedepends = cmake makedepends = git makedepends = mono depends = ca-certificates @@ -4,14 +4,14 @@ pkgname='mono-git' _gitname='mono' -pkgver=r112577.5728865725b +pkgver=5.4.1.7.r1887.73c6a2ee50c pkgrel=1 pkgdesc='Free implementation of the .NET platform including runtime and compiler' url='http://www.mono-project.com/' arch=('i686' 'x86_64') license=('custom=MITX11' 'custom=MSPL' 'BSD' 'GPL' 'LGPL2.1' 'MPL') depends=('ca-certificates' 'libgdiplus' 'python' 'zlib') -makedepends=('git' 'mono') +makedepends=('cmake' 'git' 'mono') provides=('mono' 'monodoc') conflicts=('mono' 'monodoc') install="${_gitname}.install" @@ -47,11 +47,12 @@ sha256sums=( pkgver() { cd "${_gitname}" - # Tags are 'broken' for now, use revisions since the beginning of - # history: - printf "r%s.%s" \ - "$(git rev-list --count HEAD)" \ - "$(git rev-parse --short HEAD)" + local -r tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") + local -r revision=$(git rev-list --count "${tag}"...HEAD) + local -r hash=$(git rev-parse --short HEAD) + + # Suggestions for improvement welcome! + echo "${tag/mono-}.r${revision}.${hash}" } prepare() { |