diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 43 |
3 files changed, 19 insertions, 40 deletions
@@ -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 000000000000..8776c94558f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +snowflake-client*.sh @@ -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" } |