Package Details: turso-cli 0.87.2-1

Git Clone URL: https://aur.archlinux.org/turso-cli.git (read-only, click to copy)
Package Base: turso-cli
Description: Command line interface to Turso.
Upstream URL: https://github.com/tursodatabase/turso-cli
Licenses: MIT
Submitter: arthurbpf
Maintainer: arthurbpf
Last Packager: arthurbpf
Votes: 1
Popularity: 0.007240
First Submitted: 2023-08-14 01:31 (UTC)
Last Updated: 2023-11-14 19:59 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Sacro commented on 2024-07-15 21:10 (UTC)

# Mantainer: arthurbpf <arthurbpfernandes@gmail.com>

pkgname=turso-cli
pkgver=0.96.0
pkgrel=1
pkgdesc="Command line interface to Turso."
arch=('x86_64')
url="https://github.com/tursodatabase/turso-cli"
license=('MIT')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tursodatabase/turso-cli/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7f0654d472f6db3de111af5ceed4dd531c6e26baecdc8922448bc3d4376cac10')

prepare() {
        cd "$pkgname-$pkgver"
        mkdir -p build/
}

build() {
        cd "$pkgname-$pkgver"
        export CGO_CPPFLAGS="${CPPFLAGS}"
        export CGO_CFLAGS="${CFLAGS}"
        export CGO_CXXFLAGS="${CXXFLAGS}"
        export CGO_LDFLAGS="${LDFLAGS}"
        export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
        go build -o build ./cmd/turso
}

package() {
        cd "${pkgname}-${pkgver}"
        install -Dm0755 build/turso "$pkgdir"/usr/bin/turso
}

Updated to follow packaging guidelines for Go apps