Date: Saturday, April 29, 2023 @ 06:50:30
  Author: alerque
Revision: 1449247

archrelease: copy trunk to community-x86_64

Added:
  dolt/repos/community-x86_64/
  dolt/repos/community-x86_64/PKGBUILD
    (from rev 1449246, dolt/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: dolt/repos/community-x86_64/PKGBUILD (from rev 1449246, 
dolt/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-04-29 06:50:30 UTC (rev 1449247)
@@ -0,0 +1,43 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Artur Juraszek <[email protected]>
+# Contributor: istimaldar_sntlk <[email protected]>
+
+pkgname=dolt
+pkgver=0.75.15
+pkgrel=2
+pkgdesc='Git for data! A version controlled relational database'
+arch=(x86_64)
+url=https://www.dolthub.com
+_url="https://github.com/dolthub/$pkgname";
+license=(Apache)
+depends=(glibc)
+makedepends=(go)
+_archive="$pkgname-$pkgver"
+source=("$_url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('ec61890c77f10f3e9bba95cbabe36ef384b856cbcc1f6ae4fccdc2f3b6514ac0')
+
+prepare() {
+       cd "$_archive"/go
+       mkdir -p build
+}
+
+build() {
+       cd "$_archive"/go
+       export CGO_CPPFLAGS="$CPPFLAGS"
+       export CGO_CFLAGS="$CFLAGS"
+       export CGO_CXXFLAGS="$CXXFLAGS"
+       export CGO_LDFLAGS="$LDFLAGS"
+       go build \
+               -trimpath \
+               -buildmode=pie \
+               -mod=readonly \
+               -modcacherw \
+               -ldflags "-extldflags \"$LDFLAGS\"" \
+               -o build \
+               ./cmd/...
+}
+
+package() {
+       cd "$_archive"/go
+       install -Dm0755 -t "$pkgdir/usr/bin/" "build/$pkgname"
+}

Reply via email to