summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecb656c78add2fb57d43a3b4471d6ddf35e2bc26 (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:  Vincent Grande <shoober420@gmail.com>
# Contributor: Taran Lynn <taranlynn0gmail.com>

pkgname=swaybg-minimal-git
_pkgname=swaybg
pkgver=r95.a8f109a
pkgrel=1
license=("MIT")
pkgdesc="Wallpaper tool for Wayland compositors"
makedepends=(
  'meson'
  'git'
#  'scdoc'
  'wayland-protocols'
#  'gdk-pixbuf2'
)
depends=(
    "wayland" "cairo"
)

arch=("i686" "x86_64")
url="https://swaywm.org"
source=("${pkgname%-*}::git+https://github.com/swaywm/swaybg.git#branch=master")
sha1sums=("SKIP")
provides=("swaybg")
conflicts=("swaybg")

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


build() {
  arch-meson "${_pkgname}" build -Dgdk-pixbuf=disabled -Dman-pages=disabled
  meson compile -C build
}

#check() {
#  meson test -C build
#}

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