diff --git a/wl-clipboard/.footprint b/wl-clipboard/.footprint new file mode 100644 index 0000000..b9da9c5 --- /dev/null +++ b/wl-clipboard/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/wl-copy +-rwxr-xr-x root/root usr/bin/wl-paste +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/wl-clipboard.1.gz +-rw-r--r-- root/root usr/share/man/man1/wl-copy.1.gz +-rw-r--r-- root/root usr/share/man/man1/wl-paste.1.gz diff --git a/wl-clipboard/Pkgfile b/wl-clipboard/Pkgfile new file mode 100644 index 0000000..ede8afa --- /dev/null +++ b/wl-clipboard/Pkgfile @@ -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 +}