blob: c389fddf015e115d915fe38783bf86bc27ba1f92 (
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
|
# Maintainer: Marcel Röthke <marcel@roethke.info>
pkgname=dblab
pkgver=0.26.0
pkgrel=1
pkgdesc="Interactive client for PostgreSQL, MySQL, SQLite3, Oracle and SQL Server"
arch=(x86_64 i686 aarch64 armv7h armv7h)
url="https://github.com/danvergara/dblab"
license=('MIT')
depends=(glibc)
makedepends=(go)
checkdepends=()
optdepends=()
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/danvergara/dblab/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ed79cd047bd1db1a0d405b08c613e3b58d2b51878c944063b810b86530955028')
build() {
cd "$pkgname-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOPATH="${srcdir}"
export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
go build -o dblab -ldflags "-compressdwarf=false -linkmode=external" .
}
package() {
cd "$pkgname-$pkgver"
install -D -m755 dblab "${pkgdir}/usr/bin/dblab"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -d "${pkgdir}/usr/share/zsh/site-functions"
./dblab completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_dblab"
}
|