From 2da6455ec49146bfc58242de6220209c197dd883 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Fri, 13 Jan 2023 23:34:27 +0100 Subject: [PATCH] New package: Clipboard-0.3.0 --- srcpkgs/Clipboard/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/Clipboard/template diff --git a/srcpkgs/Clipboard/template b/srcpkgs/Clipboard/template new file mode 100644 index 000000000000..846a51ed91ee --- /dev/null +++ b/srcpkgs/Clipboard/template @@ -0,0 +1,25 @@ +# Template file for 'Clipboard' +pkgname=Clipboard +version=0.3.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config wayland-devel" +makedepends="libX11-devel wayland-devel wayland-protocols" +short_desc="Cut, copy, and paste anything, anywhere, all from the terminal" +maintainer="Marcin Puc " +license="GPL-3.0-or-later" +homepage="https://github.com/Slackadays/Clipboard" +distfiles="https://github.com/Slackadays/Clipboard/archive/refs/tags/${version}.tar.gz" +checksum=7cbe5146f5385707efd58a1fb1af22f7383c1b722ef0ad507f43c5dd736df820 + +if [ "${XBPS_TARGET_NO_ATOMIC8}" ]; then + makedepends+=" libatomic-devel" + CXXFLAGS+=" -latomic" +fi + +post_install() { + vman documentation/manpages/man.1 clipboard.1 + + # symlink fails to be installed automatically + ln -s clipboard "${DESTDIR}/usr/bin/cb" +}