summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9e8e1d7b782ae3d091c675172a9e72a60ef2c8f (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Chee Sing Lee <cheesinglee@gmail.com>
pkgname=tableau-sdk
pkgver=9_2_0
pkgrel=1
pkgdesc="C/C++/Java SDK for creating and publishing extracts to a Tableau Server"
arch=('i686' 'x86_64')
url="http://tableau.com/"
license=('custom')
groups=()
depends=('curl' 'qt5-base' 'java-environment' 'gcc-libs-multilib' 'expat' \
                'boost-libs')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source_i686=("http://downloads.tableau.com/tssoftware/Tableau-SDK-Linux-32Bit-${pkgver//_/-}.tar.gz")
source_x86_64=("http://downloads.tableau.com/tssoftware/Tableau-SDK-Linux-64Bit-${pkgver//_/-}.tar.gz")
noextract=('libcurl.so' 'libcurl.so.4' 'libcurl.so.4.4.0')
md5sums_i686=('47c620440759ad2a5c80fff0a0258974')
md5sums_x86_64=('3816a83ea5e0c4b3a2e8d96d4b62fb57')
validpgpkeys=()

package() {
  mkdir -p $pkgdir/usr/bin
  mkdir $pkgdir/usr/include
  mkdir $pkgdir/usr/lib
  mkdir -p $pkgdir/usr/share/licenses/$pkgname
  if [ $CARCH == i686 ]; then
    cd tableausdk-linux32-9200.15.1201.0018
    cp -r bin/* $pkgdir/usr/bin/
    cp -r include/* $pkgdir/usr/include/
    cp -r lib/* $pkgdir/usr/lib/
    cp -r share/* $pkgdir/usr/share/
  else
    cd tableausdk-linux64-9200.15.1201.0018
    cp -r bin/* $pkgdir/usr/bin/
    cp -r include/* $pkgdir/usr/include/
    cp -r lib64/* $pkgdir/usr/lib/
    cp -r share/* $pkgdir/usr/share/
  fi
  cp share/tableausdk-9200.15.1201.0018/LICENSE.txt \
     $pkgdir/usr/share/licenses/$pkgname/LICENSE
  echo "/usr/lib/tableausdk" > $pkgdir/etc/ld.so.conf.d/tableau-sdk.conf
}