# Maintainer: Adam Brunnmeier pkgname=wl-clipboard-git pkgver=2.0.0 pkgrel=1 pkgdesc="Command-line copy/paste utilities for Wayland" arch=('i686' 'x86_64') url="https://github.com/bugaevc/wl-clipboard" license=('GPL') depends=('wayland' 'xdg-utils' 'mailcap') makedepends=('git' 'meson' 'wayland-protocols') provides=("${pkgname%-git}=${pkgver%+*}") conflicts=("${pkgname%-git}") source=("git+https://github.com/bugaevc/wl-clipboard") md5sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" git describe --tags --abbrev=10 HEAD | sed 's/^v//; s/-/+/; s/-/./' } build() { cd "$srcdir/${pkgname%-git}" meson --prefix=/usr build cd build ninja } package() { cd "$srcdir/${pkgname%-git}/build" DESTDIR=${pkgdir} ninja install }