summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarrat2020-02-22 01:40:00 +0100
committerNarrat2020-02-22 01:40:00 +0100
commitfd06ed81ab023dfa1b03f6628fbe613dc0a91d5b (patch)
tree9cb8078c2f58862d00750edc26ff91788c9308ec
parentdef36d93d580d41f53bd9a683a789354c2936a1e (diff)
downloadaur-fd06ed81ab023dfa1b03f6628fbe613dc0a91d5b.tar.gz
update to 0.7.4
and update PKGBUILD for go>1.11
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD30
2 files changed, 18 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2e1fdede8b..7f5d5e570a9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
pkgbase = trdsql
pkgdesc = Tool that can execute SQL queries on CSV, LTSV and JSON
- pkgver = 0.4.1
+ pkgver = 0.7.4
pkgrel = 1
url = https://github.com/noborus/trdsql
arch = i686
arch = x86_64
license = MIT
- makedepends = go
- makedepends = dep
+ makedepends = go-pie
depends = glibc
- source = trdsql-0.4.1.tar.gz::https://github.com/noborus/trdsql/archive/v0.4.1.tar.gz
- sha256sums = 17aab53f4384824ea9a386f240a20b770bbbdb8c521383558febc998fad966ef
+ source = trdsql-0.7.4.tar.gz::https://github.com/noborus/trdsql/archive/v0.7.4.tar.gz
+ sha256sums = f3bf3dd0106d459c03c59b42cff0f4acab35708aa250ca5b034631da30cf4b49
pkgname = trdsql
diff --git a/PKGBUILD b/PKGBUILD
index af97eb81665..4cd82ea88a6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,34 @@
# Maintainer: Dmitri Goutnik <dg@syrec.org>
pkgname=trdsql
-pkgver=0.4.1
+pkgver=0.7.4
pkgrel=1
pkgdesc="Tool that can execute SQL queries on CSV, LTSV and JSON"
arch=('i686' 'x86_64')
url="https://github.com/noborus/trdsql"
license=('MIT')
depends=('glibc')
-makedepends=('go' 'dep')
+makedepends=('go-pie')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('17aab53f4384824ea9a386f240a20b770bbbdb8c521383558febc998fad966ef')
+sha256sums=('f3bf3dd0106d459c03c59b42cff0f4acab35708aa250ca5b034631da30cf4b49')
-prepare() {
- mkdir -p src/github.com/noborus
- mv ${pkgname}-${pkgver} src/github.com/noborus/trdsql
- cd src/github.com/noborus/trdsql
- env GOPATH="${srcdir}" dep ensure
-}
build() {
- cd src/github.com/noborus/trdsql
- env GOPATH="${srcdir}" go build
+ cd "$pkgname-$pkgver"
+ go build \
+ -mod=vendor \
+ -trimpath \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o $pkgname .
}
-# check() {
-# cd src/github.com/noborus/trdsql
-# env GOPATH="${srcdir}" go test ./...
-# }
+#check() {
+# cd "$pkgname-$pkgver"
+# go test -mod=vendor ./...
+#}
package() {
- cd src/github.com/noborus/trdsql
+ cd "$pkgname-$pkgver"
install -Dm755 trdsql "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"