summaryrefslogtreecommitdiff
path: root/testing/csvq/APKBUILD
blob: 9ae18e924792c903f02c6f0613393ce79aac1bca (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
# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=csvq
pkgver=1.17.10
pkgrel=3
pkgdesc="SQL-like query language for csv format"
url="https://github.com/mithrandie/csvq"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="go"
source="https://github.com/mithrandie/csvq/archive/v$pkgver/csvq-v$pkgver.tar.gz
	no-ldflags.patch
	"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make VERSION=$pkgver build
}

package() {
	install -Dm755 build/bin/csvq -t "$pkgdir"/usr/bin
}

sha512sums="
ee73e3f68851ec740753d1e00308611749bd9c9f70bfed1cd13552eee5df446f19222c56e26b18ce96b8a39d1e52518a92a1755163a6664a334e3fc5c0e19273  csvq-v1.17.10.tar.gz
acd77fddfad54c4f226eb50c0e5db32ad413195f97575cb3e9de81559904d1ff3920ca244924e68c3783cef847fb68f7032a082ebef23b51572880f702ac168e  no-ldflags.patch
"