mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Fabricio Silva <hi@fabricio.dev>
|
|
maintainer="Fabricio Silva <hi@fabricio.dev>"
|
|
pkgname=mkbrr
|
|
pkgver=1.12.0
|
|
pkgrel=0
|
|
pkgdesc="mkbrr is a tool to create, modify and inspect torrent files."
|
|
url="https://github.com/autobrr/mkbrr"
|
|
arch="all !x86 !armhf !armv7" # 32bits are broken
|
|
license="GPL-2.0-or-later"
|
|
options="net" # net for go
|
|
makedepends="go"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/autobrr/mkbrr/archive/v$pkgver.tar.gz
|
|
no-self-update.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
go mod download
|
|
}
|
|
|
|
build() {
|
|
go build -ldflags "-s -w
|
|
-X main.version=$pkgver
|
|
-X main.buildTime=$(date -u "+%Y-%m-%dT%H:%M:%SZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})
|
|
"
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 mkbrr -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
d3fa23f511c10cf6e41b8803f9583e56824b31dfacd2cc62fc30ccde10c1a85271d7ac982a936edf4fc4f0990970d1f21747f8e1a57f9a909bbc1cf69014e200 mkbrr-1.12.0.tar.gz
|
|
dd73cbdf6bef71f706bdf585e0f2abe2bfe6625c6bdbd2b29bfadd1e9891cd52c121081c05e1c905ce5ced01ea2828a62ad02abf13069058469d4528543269c8 no-self-update.patch
|
|
"
|