aports/testing/dolt/APKBUILD
2023-11-15 09:03:22 +00:00

35 lines
972 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dolt
pkgver=1.26.1
pkgrel=0
pkgdesc="Dolt It's Git for Data"
url="https://www.dolthub.com"
arch="all !x86 !armhf !armv7" # fails on 32-bit
license="Apache-2.0"
options="!check chmod-clean net"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/dolthub/dolt/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/go"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
mkdir -p build
go build \
-mod=readonly \
-ldflags "-extldflags \"$LDFLAGS\"" \
-o build \
./cmd/...
}
package() {
install -Dm755 build/dolt "$pkgdir"/usr/bin/dolt
}
sha512sums="
22aa5590651dfca97e9f77a914ef826fbfad6cf07a25bf2707ee430e30e5f37ec944da2a2f2eb9c538cc5d74d177f2ffdcd542460deaea52743e887fe08476d7 dolt-1.26.1.tar.gz
"