aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-27 18:36:02 +0200
committerDaniel Eklöf <daniel@ekloef.se>2020-09-27 18:36:02 +0200
commit71b866904bc64ed7813ed1948ec3254deacdfeb5 (patch)
tree532e48eee0543411348bfc29591942972abab3c1 /PKGBUILD
parenta0add632c1ea61f37f31b717921e96984ca23947 (diff)
downloadwbg-71b866904bc64ed7813ed1948ec3254deacdfeb5.tar.gz
pkgbuild: initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
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
+}