mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 21:40:31 +01:00
Change versioning scheme.
Versions now only include commits that affect the template, rather than all of them, to prevent spurious rebuilds. However, this also means that we need an epoch, since the version number drastically decreased. Thanks to Eli Schwarz, for recommending this over IRC.
This commit is contained in:
3
.SRCINFO
3
.SRCINFO
@@ -1,7 +1,8 @@
|
|||||||
pkgbase = munin-template-munstrap-git
|
pkgbase = munin-template-munstrap-git
|
||||||
pkgdesc = Bootstrap based template for munin-html
|
pkgdesc = Bootstrap based template for munin-html
|
||||||
pkgver = r3632.c9157be3
|
pkgver = r25.c3431051
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
|
epoch = 1
|
||||||
url = https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap
|
url = https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL2
|
license = GPL2
|
||||||
|
|||||||
8
PKGBUILD
8
PKGBUILD
@@ -1,6 +1,9 @@
|
|||||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||||
pkgname=munin-template-munstrap-git
|
pkgname=munin-template-munstrap-git
|
||||||
pkgver=r3632.c9157be3
|
pkgver=r25.c3431051
|
||||||
|
# Changed versioning scheme to prevent rebuilds
|
||||||
|
# Thanks to eschwarz for recommending
|
||||||
|
epoch=1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Bootstrap based template for munin-html"
|
pkgdesc="Bootstrap based template for munin-html"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@@ -11,9 +14,10 @@ source=("${pkgname%-git}::git+https://github.com/munin-monitoring/contrib.git")
|
|||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
|
local subdir="templates/munstrap"
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$srcdir/${pkgname%-git}"
|
||||||
# Git, no tags available
|
# Git, no tags available
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
printf "r%s.%s" "$(git rev-list --count HEAD "$subdir")" "$(git log -n 1 --pretty=format:%h -- "$subdir")"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|||||||
Reference in New Issue
Block a user