diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-27 18:36:02 +0200 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-27 18:36:02 +0200 |
commit | 71b866904bc64ed7813ed1948ec3254deacdfeb5 (patch) | |
tree | 532e48eee0543411348bfc29591942972abab3c1 /PKGBUILD | |
parent | a0add632c1ea61f37f31b717921e96984ca23947 (diff) | |
download | wbg-71b866904bc64ed7813ed1948ec3254deacdfeb5.tar.gz |
pkgbuild: initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
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 +} |