mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Mate Farkas <y2k.elma@gmail.com>
|
|
# Maintainer: Mate Farkas <y2k.elma@gmail.com>
|
|
pkgname=asdf
|
|
pkgver=0.16.7
|
|
pkgrel=1
|
|
pkgdesc="The Multiple Runtime Version Manager"
|
|
url="https://asdf-vm.com/"
|
|
arch="all !ppc64le"
|
|
license="MIT"
|
|
depends="bash git"
|
|
makedepends="go"
|
|
checkdepends="bats"
|
|
options="net" # net for go
|
|
subpackages="$pkgname-doc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/asdf-vm/asdf/archive/refs/tags/v$pkgver.tar.gz
|
|
fix-test.patch
|
|
"
|
|
|
|
build() {
|
|
go build -ldflags="-s -X main.version=$pkgver" -o=./asdf ./cmd/asdf
|
|
}
|
|
|
|
check() {
|
|
SHELL=/bin/bash go test -buildmode=default -coverprofile=/tmp/coverage.out -bench= ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 -D asdf "$pkgdir"/usr/bin/asdf
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
03bbeebaa1e5becfc0684923d800d78a92ca10095096ccd74934d6eecc1fac5f2c9ec9bbce1b9450135718b167f36fd0203f5803245e86e0ddcb68e1ab2e191b asdf-0.16.7.tar.gz
|
|
d384cee16264530e3413acc71158b56e859944a76d421a57d9f85e9cb67a18994bbd81c90dd026c7aaabf60ffd19f6397b1d1c3a17c829bb6376037bbf862009 fix-test.patch
|
|
"
|