gentoo-overlay/net-p2p/qbittorrent-cli/qbittorrent-cli-2.2.0.ebuild
Alexander Miroshnichenko d7cd234adc net-p2p/qbittorrent-cli: add new package
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
2025-07-23 11:53:15 +03:00

32 lines
735 B
Bash

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