Files
LFS-PKGBUILDs/gui-apps/wl-clipboard-2.2.1.PKGBUILD

31 lines
833 B
Bash

pkgname=wl-clipboard
pkgver=2.2.1
pkgdesc="Wayland clipboard utilities"
homepage="https://github.com/bugaevc/wl-clipboard"
license=("GPL-3")
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/bugaevc/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=("fdda519df42e1dbfb112ab7d8195a0f36cf5cf18fffffa8f32ac4688a08009e206b96a169da641f909c9acf244eb6a5201811842b4d3111e1ccdb1ce8fb4db43")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_args=(
--prefix=/usr
--buildtype=release
--wrap-mode=nodownload
-D python.bytecompile=1
-D fishcompletiondir="/usr/share/fish/vendor_completions.d"
)
meson setup build "${meson_args[@]}"
meson compile -C build
}
src_install() {
meson install -C build --destdir "$pkgdir"
}
# vim:ft=sh syn=sh et sw=2: