net-p2p/qbittorrent-cli: add new package

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
2025-07-23 11:52:50 +03:00
parent e316741799
commit d7cd234adc
2 changed files with 34 additions and 0 deletions

View File

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