blob: 47da2e26b7941df41ca90a4894b0e880d749b02b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgname=amber-theme-git
pkgver=r133.b306dc4
pkgrel=1
pkgdesc='GTK+ and GNOME Shell theme based on the Ubuntu Ambiance theme'
url=https://github.com/lassekongo83/amber-theme
license=(GPL)
makedepends=(meson ninja sassc git)
arch=(any)
source=("${pkgname}::git+${url}")
sha512sums=(SKIP)
pkgver () {
cd "${pkgname}"
(
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)"
)
}
prepare () {
rm -rf "${srcdir}/build"
}
build () {
arch-meson "${srcdir}/build" "${srcdir}/${pkgname}"
ninja -C "${srcdir}/build"
}
package () {
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
}
|