summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 459bab2a0dc123e28ca4f02184a69d66989c881e (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
32
33
34
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>

pkgname=vertica-client
pkgver=12.0.2
_pkgver=${pkgver}-0
pkgrel=1
pkgdesc="Client for the Vertica Analytic Database"
arch=('x86_64')
url="https://www.vertica.com/"
license=('custom: commercial')
PKGEXT=.pkg.tar
install=${pkgname}.install
depends=(java-runtime gcc-libs libxcrypt-compat)
optdepends=('java-environment: Needed for the JDBC client')
source=(https://www.vertica.com/client_drivers/12.0.x/${_pkgver}/vertica-client-${_pkgver}.x86_64.tar.gz LICENSE)
sha256sums=('a1e3ee0348ae699509a1df33beeb6bccca6c4083c446d56e23a337c5c76be53f'
            '6e0cd8aec08647e568b34d70754bfa354106d610873f753ae66d987a0ae0a796')

if test "$CARCH" == i686; then
  __vertica_arch=i386
elif test "$CARCH" == x86_64; then
  __vertica_arch=x86_64
fi

package() {
  install -d "${pkgdir}/usr/share/licenses/vertica-client"
  install -d "${pkgdir}/opt"
  install -d "${pkgdir}/usr/bin"
  
  cp -r "${srcdir}/opt/"* "${pkgdir}/opt/" -R
  install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  ln -s /opt/vertica/bin/vsql "${pkgdir}/usr/bin/vsql"
}