suwako/net-misc/xmrig-cuda/xmrig-cuda-6.21.1.ebuild

46 lines
765 B
Bash
Raw Normal View History

2024-06-12 10:38:57 +02:00
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake systemd
DESCRIPTION="CUDA Plugin for XMRig"
HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig-cuda"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/xmrig/xmrig-cuda/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="Apache-2.0 GPL-3+ MIT"
SLOT="0"
IUSE=""
DEPEND="
"
RDEPEND="
${DEPEND}
"
src_prepare() {
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
)
cmake_src_configure
}
src_install() {
default
keepdir /etc/xmrig
systemd_dounit "${FILESDIR}"/xmrig.service
doblib.so libxmrig-cuda.so
}