diff --git a/net-p2p/qbittorrent-cli/Manifest b/net-p2p/qbittorrent-cli/Manifest new file mode 100644 index 0000000..794bc9b --- /dev/null +++ b/net-p2p/qbittorrent-cli/Manifest @@ -0,0 +1,2 @@ +DIST qbittorrent-cli-2.2.0-vendor.tar.xz 2179664 BLAKE2B acce1e56633e890d1d907fa0b29e42218a7950870bfb77ff38c2a03979df89954e50f27fb52562e7a28671c21afc13d1aa5ce67e886743f947c97cc77f8b5be5 SHA512 643cf96736df67ff899df0d126ae52d57dd3f8b82d8262d4a3b0723de8f3398af61e43a8e41874b8bce6204cbf8fe2e4f84f79b48af01b396ee9ccd241362403 +DIST qbittorrent-cli-2.2.0.tar.gz 69482 BLAKE2B 3d591d8c858cf3f4785229458fedc708ef81c2ed74edcfae75386ef7f5b83bed6f88499b1cc842eeb0e4e420be9e3751796853180c280a668d44d24ce46d0613 SHA512 3620383b3ef0ade46a2dc55e4e69e903419f833f2a65878409310e681bbef11fdb0b5565500129347c807ccb77f63322ddbe0367a995f2c63f113a32caa561ba diff --git a/net-p2p/qbittorrent-cli/qbittorrent-cli-2.2.0.ebuild b/net-p2p/qbittorrent-cli/qbittorrent-cli-2.2.0.ebuild new file mode 100644 index 0000000..74b513c --- /dev/null +++ b/net-p2p/qbittorrent-cli/qbittorrent-cli-2.2.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A cli to manage qBittorrent" +HOMEPAGE="https://github.com/ludviglundgren/qbittorrent-cli" +SRC_URI="https://github.com/ludviglundgren/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://git.millerson.name/alex/gentoo-artifacts/releases/download/${P}-vendor/${P}-vendor.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_compile() { + ego build -o bin/qbt -ldflags " + -X main.version=v${PV} + -X main.commit=release + -X main.date=release" \ + cmd/qbt/main.go || die +} + +src_install() { + dobin bin/qbt + dodoc README.md +} \ No newline at end of file