cruxports/wl-clipboard/Pkgfile

29 lines
748 B
Plaintext

# Description: copy/paste utilities for wayland
# URL: https://github.com/bugaevc/wl-clipboard
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: wayland
# Optional: wayland-protocols
name=wl-clipboard
version=2.1.0
release=1
source=(https://github.com/bugaevc/$name/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
PKGMK_WLCLIP="--prefix=/usr \
--buildtype=release \
-Db_lto=true \
-Db_pie=true"
prt-get isinst zsh || PKGMK_WLCLIP+=" -Dzshcompletiondir=no"
prt-get isinst fish || PKGMK_WLCLIP+=" -Dfishcompletiondir=no"
meson setup build $PKGMK_WLCLIP
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
}