From 71b866904bc64ed7813ed1948ec3254deacdfeb5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 27 Sep 2020 18:36:02 +0200 Subject: pkgbuild: initial commit --- PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3dc22a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=wbg +pkgver=0.0.0 +pkgrel=1 +pkgdesc="Super simple wallpaper application" +arch=('x86_64' 'aarch64') +url=https://codeberg.org/dnkl/wbg +license=(mit) +makedepends=('meson' 'ninja' 'tllist>=1.0.1') +depends=('wayland' 'libjpeg-turbo' 'libpng') +source=() + +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 +} -- cgit v1.2.3