summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67fae6dc386a24ae3758fdb09f49eb6d474979d5 (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
# Maintainer: Hsiu-Ming Chang <cges30901 at gmail dot com>

pkgname=color-scheme-simulator-git
pkgver=r10.2c3452f
pkgrel=1
pkgdesc="A quick portal implementation + GUI to test the upcoming dark style preference"
arch=(x86_64)
url="https://gitlab.gnome.org/alicem/color-scheme-simulator"
license=('GPL3')
depends=('xdg-desktop-portal')
makedepends=('meson' 'git' 'vala' 'libadwaita')
optdepends=("libadwaita: for GUI")
install=$pkgname.install
source=("git+https://gitlab.gnome.org/alicem/color-scheme-simulator.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/${pkgname%-git}"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  arch-meson build
  meson compile -C build
}

package() {
  cd "$srcdir/${pkgname%-git}"
  meson install -C build --destdir "$pkgdir"
}