aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: d5331b0f2a0e9e9d969488a71114a2aa259bce97 (plain) (blame)
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
pkgname=wbg
pkgver=1.1.0
pkgrel=1
pkgdesc="Super simple wallpaper application"
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/wbg
license=(mit)
makedepends=('meson' 'ninja' 'wayland-protocols' 'tllist>=1.0.1')
depends=('wayland' 'pixman' 'libjpeg-turbo' 'libpng' 'libwebp')
source=()
changelog=CHANGELOG.md

pkgver() {
  cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
      head -3 ../meson.build | grep version | cut -d "'" -f 2
}

build() {
  meson --prefix=/usr --buildtype=release --wrap-mode=nofallback ..
  ninja
}

package() {
  DESTDIR="${pkgdir}/" ninja install
}