From 9465a5292deeb1ffe8883869c33bf5aa1e0dc9ce Mon Sep 17 00:00:00 2001 From: Paddy Milner Date: Mon, 18 Aug 2025 19:52:14 +0100 Subject: [PATCH] Fix checksum issue --- app-misc/cliphist/cliphist-0.4.0.ebuild | 54 +++++++++++++++++++++++++ app-misc/cliphist/cliphist-0.6.1.ebuild | 29 ------------- 2 files changed, 54 insertions(+), 29 deletions(-) create mode 100644 app-misc/cliphist/cliphist-0.4.0.ebuild delete mode 100644 app-misc/cliphist/cliphist-0.6.1.ebuild diff --git a/app-misc/cliphist/cliphist-0.4.0.ebuild b/app-misc/cliphist/cliphist-0.4.0.ebuild new file mode 100644 index 0000000..2955bd8 --- /dev/null +++ b/app-misc/cliphist/cliphist-0.4.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 2023 Avishek Sen +# Distributed under the terms of the GNU General Public License v3 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Wayland clipboard manager" +HOMEPAGE="https://github.com/sentriz/cliphist" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+pie" + +KEYWORDS="~amd64" +RESTRICT="mirror" + +RDEPEND="gui-apps/wl-clipboard + x11-misc/xdg-utils" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +SRC_URI="https://github.com/sentriz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/x0rzavi/x0rzavi-overlay/raw/main/${CATEGORY}/${PN}/files/${P}-deps.tar.xz" +DOCS="readme.md LICENSE" + +src_compile () { + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CXXFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + if use pie ; then + ego build \ + --buildmode=pie \ + -trimpath \ + -mod=readonly \ + -modcacherw \ + -ldflags "-s -w -linkmode external -X main.version=${PV}" \ + -o "${PN}" . + else + ego build \ + -trimpath \ + -mod=readonly \ + -modcacherw \ + -ldflags "-s -w -linkmode external -X main.version=${PV}" \ + -o "${PN}" . + fi +} + +src_install() { + einstalldocs + dobin "${PN}" +} diff --git a/app-misc/cliphist/cliphist-0.6.1.ebuild b/app-misc/cliphist/cliphist-0.6.1.ebuild deleted file mode 100644 index f3e159b..0000000 --- a/app-misc/cliphist/cliphist-0.6.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module - -DESCRIPTION="Wayland clipboard manager with support for multimedia" -HOMEPAGE="https://github.com/sentriz/cliphist" -SRC_URI="https://github.com/sentriz/cliphist/archive/refs/tags/v0.6.1.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="GPL-3 MIT BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -RDEPEND=" - gui-apps/wl-clipboard - x11-misc/xdg-utils -" -DEPEND="${RDEPEND}" - -src_compile() { - ego build -} - -src_install() { - dobin "${PN}" - default -}