mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 15:36:59 +02:00
31 lines
825 B
Text
31 lines
825 B
Text
# Maintainer: Cowington Post <cowingtonpost@gmail.com>
|
|
pkgname=qbittorrent-cli
|
|
pkgver=2.1.0
|
|
pkgrel=4
|
|
pkgdesc="Cli to manage qBittorrent"
|
|
url="https://github.com/ludviglundgren/qbittorrent-cli"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="https://github.com/ludviglundgren/qbittorrent-cli/archive/v$pkgver/qbittorrent-cli-$pkgver.tar.gz"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -o bin/qbt ./cmd/qbt/
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/qbt -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
99b5cbe356c44706680fb564eadb2c721f8e37f17e880568af6af2d986f3c1fcddb6b6e7021ab1d8af4086c5a06d25b8c591a98ebca6aae7d8d12948209b2211 qbittorrent-cli-2.1.0.tar.gz
|
|
"
|