Fix checksum issue

This commit is contained in:
Paddy Milner 2025-08-18 19:52:14 +01:00
parent 39523d99ae
commit 9465a5292d
2 changed files with 54 additions and 29 deletions

View file

@ -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}"
}

View file

@ -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
}