summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26f145c92733738d6f293ab0818b24bd1a4e4feb (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
# Maintainer: Isaiah Bierbrauer <isaiah@isaiahbierbrauer.com>
pkgname=wsbg-git
pkgver=r132.de5e2aa
pkgrel=1
pkgdesc="Workspace wallpaper tool for Sway"
arch=("i686" "x86_64")
url="https://isaiahbierbrauer.com/wsbg"
license=("MIT")
depends=(
  "wayland"
  "pixman"
  "gdk-pixbuf2"
)
makedepends=(
  "meson"
  "git"
  "scdoc"
  "wayland-protocols"
)
provides=("wsbg")
conflicts=("wsbg")
source=("${pkgname}::git+https://github.com/saibier/wsbg.git#branch=main")
sha1sums=("SKIP")

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

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

check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm644 "${pkgname}/LICENSE" -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  install -Dm644 "${pkgname}/README.md" -t "$pkgdir/usr/share/doc/${pkgname%-git}"
}