diff --git a/PKGBUILD.wayland-only b/PKGBUILD.wayland-only new file mode 100644 index 0000000..cf64bb5 --- /dev/null +++ b/PKGBUILD.wayland-only @@ -0,0 +1,30 @@ +pkgname=f00bar-wayland +pkgver=0.9.0.r159.g902245d +pkgrel=1 +pkgdesc="Simplistic and highly configurable status panel for Wayland" +arch=('x86_64') +url=https://gitlab.com/dnkl/f00bar +license=(mit) +conflicts=('f00bar') +depends=( + 'wayland' 'wlroots' + 'freetype2' 'fontconfig' 'cairo' + 'libyaml' + 'alsa-lib' + 'libudev.so' + 'json-c' + 'libmpdclient') +source=() + +pkgver() { + git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_X11=0 -DENABLE_WAYLAND=1 ../ + ninja +} + +package() { + DESTDIR="${pkgdir}/" ninja install +}