mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-23 14:31:57 +01:00
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=go-task
|
|
pkgver=3.42.1
|
|
pkgrel=0
|
|
pkgdesc="Task runner written in Go, installed as go-task"
|
|
url="https://taskfile.dev/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
checkdepends="gotestfmt"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-task::noarch
|
|
$pkgname-bashcomp::noarch
|
|
$pkgname-fishcomp::noarch
|
|
$pkgname-zshcomp::noarch
|
|
"
|
|
options="net" # go dependencies
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/go-task/task/archive/refs/tags/v$pkgver.tar.gz
|
|
completion-rename-to-go-task.patch
|
|
"
|
|
builddir="$srcdir/task-$pkgver"
|
|
|
|
build() {
|
|
go build -v -ldflags="-X main.version=$pkgver" github.com/go-task/task/v3/cmd/task
|
|
}
|
|
|
|
check() {
|
|
go build -o bin/ ./cmd/sleepit
|
|
go test -json -v ./... | tee test.log | gotestfmt -showteststatus -hide empty-packages
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 task "$pkgdir"/usr/bin/go-task
|
|
install -Dm0644 website/docs/usage.mdx -t "$pkgdir"/usr/share/doc/go-task/
|
|
|
|
install -Dm0644 completion/bash/task.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/go-task.bash
|
|
install -Dm0644 completion/fish/task.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/go-task.fish
|
|
install -Dm0644 completion/zsh/_task \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_go_task
|
|
|
|
install -Dm0644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
task() {
|
|
pkgdesc="Task runner, written in Go, installed as task"
|
|
depends="!task"
|
|
|
|
mkdir -p "$subpkgdir/usr/bin"
|
|
ln -s go-task "$subpkgdir/usr/bin/task"
|
|
}
|
|
|
|
sha512sums="
|
|
4b107b312739d56880de711a6243c340011c7698c4b860a9f198b4f60263953a9bfc948f231f35d2fb2944760d5c788a5de16f5fbdc138d76cea4aee6d545b5a go-task-3.42.1.tar.gz
|
|
6b0be68bc8ab4e5761f09d5928cdc7f85228c5b6f59e6fdccd29dcfbca096a82387f568931f2dc023ce8f2127ac1797b8f02364399a6768b482d45e0794bada1 completion-rename-to-go-task.patch
|
|
"
|