PKGBUILD: alternative PKGBIULD that configures f00bar for wayland only

This commit is contained in:
Daniel Eklöf 2019-03-31 14:45:19 +02:00
parent a8370d08d5
commit 89d9f15f59

30
PKGBUILD.wayland-only Normal file
View file

@ -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
}