summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Goutnik2018-01-23 15:42:49 -0500
committerDmitri Goutnik2018-01-23 15:42:49 -0500
commit4203dbf4030d1b3fd61e12a01404d8682a1cc3eb (patch)
tree21cacca1c1b6b4f91095ae4d160840a672ae3d64
downloadaur-4203dbf4030d1b3fd61e12a01404d8682a1cc3eb.tar.gz
Added: trdsql 0.4.0-1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD39
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38c6f8c4ed0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = trdsql
+ pkgdesc = Tool that can execute SQL queries on CSV, LTSV and JSON
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://github.com/noborus/trdsql
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = go
+ makedepends = dep
+ depends = glibc
+ source = trdsql-0.4.0.tar.gz::https://github.com/noborus/trdsql/archive/v0.4.0.tar.gz
+ sha256sums = 9d9afb41b4344cb23979cc58620142a41be0ca28c014346ce6d0b797cf6671e5
+
+pkgname = trdsql
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8f610ca38de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Dmitri Goutnik <dg@syrec.org>
+
+pkgname=trdsql
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Tool that can execute SQL queries on CSV, LTSV and JSON"
+arch=('i686' 'x86_64')
+url="https://github.com/noborus/${pkgname}"
+license=('MIT')
+depends=('glibc')
+makedepends=('go' 'dep')
+source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('9d9afb41b4344cb23979cc58620142a41be0ca28c014346ce6d0b797cf6671e5')
+
+prepare() {
+ mkdir -p "${srcdir}/src/github.com/noborus"
+ mv "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/src/github.com/noborus/${pkgname}"
+}
+
+build() {
+ cd "${srcdir}/src/github.com/noborus/${pkgname}"
+ export GOPATH="${srcdir}"
+ dep ensure
+ go build -o ${pkgname}
+}
+
+# check() {
+# cd "${srcdir}/src/github.com/noborus/${pkgname}"
+# export GOPATH="${srcdir}"
+# go test ./...
+# }
+
+package() {
+ cd "${srcdir}/src/github.com/noborus/${pkgname}"
+ install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 completion/trdsql-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+}