Files
guru/app-misc/Clipboard/Clipboard-0.6.0.ebuild
Quincy Fleming e0705672ec app-misc/Clipboard: new package, add 0.6.0
Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
2023-04-24 22:02:10 -05:00

50 lines
1.2 KiB
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Cut, copy, and paste anything in your terminal"
HOMEPAGE="https://getclipboard.app/ https://github.com/Slackadays/Clipboard"
SRC_URI="https://github.com/Slackadays/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="X wayland lto debug"
RDEPEND="X? ( x11-libs/libX11 )
wayland? (
dev-libs/wayland-protocols
dev-libs/wayland
)
"
PATCHES=(
"${FILESDIR}/${P}-libdestination-and-disable-lto-and-git.patch"
)
src_prepare() {
if ! use wayland; then
sed -i '/pkg_check_modules(WAYLAND_CLIENT wayland-client wayland-protocols)/d' CMakeLists.txt || die
fi
if ! use debug; then
eapply "${FILESDIR}/${P}-disable-debug.patch"
fi
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
"-DCMAKE_INSTALL_LIBDIR=$(get_libdir)"
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$(usex lto TRUE FALSE)"
"-DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex X OFF ON)"
)
cmake_src_configure
}
pkg_postinst() {
elog "The \"clipboard\" command is depreciated. Use \"cb\" instead. \"cb\" is symlinked to \"clipboard\" for now."
}