aports/testing/dolt/APKBUILD
2025-07-09 10:18:11 +02: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.55.3
pkgrel=1
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="
73899da2c55fdc1fc537fea1472c1f4a20199f4ec0bf92a3be3d4a28f8e961cb041e994148d7fd1a3520b4f55cc242627c734e128da7a0236ae33f1ccb79311e dolt-1.55.3.tar.gz
"