summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc0d9fff189d971473734dd34b4b5eceb16bce1e (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
46
47
48
49
50
pkgname=wend-git
pkgver=r225.dc3867f
pkgrel=1
pkgdesc='Minimal presentation tool for Wayland'
url='https://sr.ht/~tardypad/wend/'
arch=('any')
license=('GPL3')

makedepends=(
  'git'
  'meson'
  'scdoc'
  'wayland-protocols'
)

depends=(
  'libxkbcommon'
  'pango'
  'wayland'
)

source=(
  'git+https://git.sr.ht/~tardypad/wend'
)

sha512sums=(
  'SKIP'
)

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

build() {
  cd wend
  arch-meson -Dzsh-completions=true build
  meson compile -C build
}

check() {
  cd wend
  meson test -C build --print-errorlogs
}

package() {
  cd wend
  meson install -C build --destdir "${pkgdir}"
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}