wl-clipboard: initial commit
This commit is contained in:
28
wl-clipboard/Pkgfile
Normal file
28
wl-clipboard/Pkgfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user