blob: d94ae2f9d14c189a33cfdc00c659feeb268c0ae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Bachitter Chahal <bachitterch@pm.me>
pkgname=pscale-cli
pkgver=0.213.0
pkgrel=1
pkgdesc='PlanetScale CLI client'
arch=(x86_64)
url='https://github.com/planetscale/cli'
license=(Apache-2.0)
depends=(glibc)
makedepends=(go staticcheck)
provides=(pscale)
conflicts=(pscale)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/planetscale/cli/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('24aeb925c09a114b0f4e249d4d5107ee361504148db718ff6b1b8a28238287de')
build() {
cd "cli-${pkgver}/cmd/pscale"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}
check() {
cd "cli-${pkgver}"
go test ./...
}
package() {
cd "cli-${pkgver}/cmd/pscale"
install -Dm755 pscale -t ${pkgdir}/usr/bin/
}
|