summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Can Celasun2019-07-30 08:30:58 +0100
committerD. Can Celasun2019-07-30 08:30:58 +0100
commitd4a049c6ad1e5bc6e62ea3bf6f8d5da3aa4964a9 (patch)
tree80e014c72fbd85cbc046e395799f98bdba49902e
parent2d8eae6cd327726566ca640c3ade98ef2795b0b3 (diff)
downloadaur-snowflake-client.tar.gz
[snowflake-client] Update to 1.1.82
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD43
3 files changed, 19 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d0e3081fcb1..f648b18ff78 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,14 @@
-# Generated by mksrcinfo v8
-# Tue Mar 22 09:39:38 UTC 2016
pkgbase = snowflake-client
- pkgdesc = Snowflake Database command line and JDBC client
- pkgver = 2.7.47
+ pkgdesc = Snowflake Database command line client (snowsql)
+ pkgver = 1.1.82
pkgrel = 1
+ epoch = 1
url = http://www.snowflake.net/
- arch = i686
arch = x86_64
license = custom: commercial
depends = gcc-libs
- depends = java-environment
- depends = bash
- depends = libtinfo
- source = sfsql.patch
- md5sums = 4ddf438900d60621b586979c96078426
+ source = snowflake-client-1.1.82.sh::http://s3-us-west-2.amazonaws.com/sfc-snowsql-updates/bootstrap/1.1/linux_x86_64/snowsql-1.1.82-linux_x86_64.bash
+ md5sums = e93cc95e21576b63d013e7c2e03e2b35
pkgname = snowflake-client
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8776c94558f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+snowflake-client*.sh
diff --git a/PKGBUILD b/PKGBUILD
index 554dec72b50..ffdc2d2bb23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,23 @@
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
pkgname=snowflake-client
-pkgver=2.7.47
+pkgver=1.1.82
pkgrel=1
-pkgdesc="Snowflake Database command line and JDBC client"
-arch=('i686' 'x86_64')
+epoch=1
+pkgdesc="Snowflake Database command line client (snowsql)"
+arch=('x86_64')
url="http://www.snowflake.net/"
license=('custom: commercial')
-depends=(gcc-libs java-environment bash libtinfo)
-source=(sfsql.patch)
-md5sums=('4ddf438900d60621b586979c96078426')
+depends=(gcc-libs)
+source=(${pkgname}-${pkgver}.sh::http://s3-us-west-2.amazonaws.com/sfc-snowsql-updates/bootstrap/1.1/linux_x86_64/snowsql-${pkgver}-linux_x86_64.bash)
+md5sums=('e93cc95e21576b63d013e7c2e03e2b35')
-_vpkg=snowflake_client.tar.gz
+package() {
+ # Stop Snowflake installer from modifying shell profile
+ local tmp="$(mktemp)"
-build() {
- msg "You need a full, licensed copy of the client in order to install it"
- msg "Searching for ${_vpkg} in dir: \"$startdir\""
- pkgpath="$startdir"
- if [[ ! -f "${pkgpath}/${_vpkg}" ]]; then
- error "Snowflake client package not found, please type absolute path to ${_vpkg} (/home/joe):"
- read pkgpath
- if [[ ! -f "${pkgpath}/${_vpkg}" ]]; then
- error "Unable to find Snowflake client package." && return 1
- fi
- fi
- msg "Found package, unpacking..."
- tar -xf "${pkgpath}/${_vpkg}" -C "${srcdir}"
-
- cd "${srcdir}"
- patch -Np1 -i "${srcdir}/sfsql.patch"
-}
+ SNOWSQL_DEST="${pkgdir}" SNOWSQL_LOGIN_SHELL="${tmp}" sh "${pkgname}-${pkgver}.sh"
-package() {
- install -d "${pkgdir}/opt/${pkgname}"
- install -d "${pkgdir}/usr/bin"
-
- cp -r "${srcdir}/client/"* "${pkgdir}/opt/${pkgname}" -R
- ln -s /opt/${pkgname}/sfsql "${pkgdir}"/usr/bin/sfsql
+ install -Dm755 "${pkgdir}/snowsql" "${pkgdir}/usr/bin/snowsql"
+ rm -f "${pkgdir}/snowsql"
}