blob: c2a5ae752f4b82bde917be4b1591c395c11722f1 (
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
|
# Maintainer: Luke Arms <luke@arms.to>
pkgname=db2-odbc-cli
# Mentioned in clidriver/license/UNIX/odbc_LI_en
pkgver=11.5.9.0
pkgrel=1
pkgdesc='IBM Data Server Driver for ODBC and CLI'
arch=('x86_64')
url='https://www.ibm.com/support/pages/db2-odbc-cli-driver-download-and-installation-information'
license=('custom:IBM IPLA')
depends=('audit' 'gcc-libs' 'glibc' 'icu' 'libcap-ng' 'pam' 'xz' 'zlib' 'libxml2' 'libxcrypt-compat')
source=("linuxx64_odbc_cli-$pkgver.tar.gz::https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v${pkgver%.0}/linuxx64_odbc_cli.tar.gz")
sha256sums=('4429588da2882333631556afe65d8412d6de8e0f5a99d646a7145e70b2134d91')
package() {
local f
install -d "$pkgdir/opt"
install -d "$pkgdir/usr/share/licenses/$pkgname"
cd "$srcdir"
for f in clidriver/license/UNIX/odbc_LI_*; do
install -m 0644 "$f" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-${f##*/odbc_LI_}.txt"
done
mv "$pkgdir/usr/share/licenses/$pkgname"/LICENSE{-en,}.txt
for f in clidriver/license/odbc_*; do
install -m 0644 "$f" "$pkgdir/usr/share/licenses/$pkgname/${f##*/odbc_}"
done
rm -rf clidriver/{license,db2dump}
mv -T clidriver "$pkgdir/opt/$pkgname"
}
|