yambar/PKGBUILD.wayland-only

33 lines
754 B
Text

pkgname=f00bar-wayland
pkgver=1.0.3
pkgrel=1
pkgdesc="Simplistic and highly configurable status panel for Wayland"
arch=('x86_64')
url=https://gitlab.com/dnkl/f00bar
license=(mit)
conflicts=('f00bar')
provides=('f00bar')
makedepends=('meson' 'ninja' 'scdoc')
depends=(
'wayland' 'wlroots'
'freetype2' 'fontconfig' 'cairo'
'libyaml'
'alsa-lib'
'libudev.so'
'json-c'
'libmpdclient')
source=()
pkgver() {
[ -d ../.git ] && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
[ ! -d ../.git ] && head -3 ../meson.build | grep version | cut -d "'" -f 2
}
build() {
meson --buildtype=minsize --prefix=/usr -Dbackend-x11=disabled -Dbackend-wayland=enabled ../
ninja
}
package() {
DESTDIR="${pkgdir}/" ninja install
}