mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 12:40:30 +01:00
29 lines
887 B
Bash
29 lines
887 B
Bash
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
|
pkgname=munin-template-munstrap-git
|
|
pkgver=r29.cfedd433
|
|
# Changed versioning scheme to prevent rebuilds
|
|
# Thanks to eschwarz for recommending
|
|
epoch=1
|
|
pkgrel=1
|
|
pkgdesc="Bootstrap based template for munin-html"
|
|
arch=('any')
|
|
url="https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap"
|
|
license=('GPL-2.0-only')
|
|
makedepends=('git')
|
|
source=("${pkgname%-git}::git+https://github.com/munin-monitoring/contrib.git")
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
local subdir="templates/munstrap"
|
|
cd "$srcdir/${pkgname%-git}"
|
|
# Git, no tags available
|
|
printf "r%s.%s" "$(git rev-list --count HEAD "$subdir")" "$(git log -n 1 --pretty=format:%h -- "$subdir")"
|
|
}
|
|
|
|
package() {
|
|
local destdir="$pkgdir/usr/share/munin/templates/munstrap"
|
|
cd "$srcdir/${pkgname%-git}"
|
|
install -d "$destdir"
|
|
cp -r templates/munstrap/{templates,static} "$destdir"
|
|
}
|