summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b04ea27002255a4560740ad7bdbcecd6092b4803 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=palette-git
pkgver=2.0.2.r3.g3a145d1
pkgrel=1
pkgdesc="Tool for viewing the GNOME color palette as defined by the design guidelines"
arch=('x86_64' 'aarch64')
url="https://gitlab.gnome.org/World/design/palette"
license=('GPL3')
depends=('libadwaita')
makedepends=('git' 'meson' 'vala')
checkdepends=('appstream-glib')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
  "git+$url.git"
  "git+https://gitlab.gnome.org/Teams/Design/HIG-app-icons.git")
b2sums=(
  'SKIP'
  'SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd ${pkgname%-git}
  git submodule init
  git config submodule.hig.url $srcdir/HIG-app-icons
  git submodule update
}

build() {
  arch-meson ${pkgname%-git} build
  meson compile -C build
}

check() {
  meson test -C build || :
}

package() {
  meson install -C build --destdir "$pkgdir"
}