# wl-clipboard - Clipboard tools for Wayland
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=wl-clipboard
version=2.2.1
release=1
desc="Clipboard tools for Wayland"
url="https://github.com/bugaevc/wl-clipboard"
license="GPL-3.0-or-later"
depend="wayland"
makedepend="meson ninja"
source="https://github.com/bugaevc/wl-clipboard/archive/refs/tags/v2.2.1.tar.gz"
sha256="SKIP"

build() {
	cd "wl-clipboard-2.2.1"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "wl-clipboard-2.2.1"
	DESTDIR="$pkgdir" ninja -C build install
}
