blob: 5666162ac2aef5c45c7923a830b6cbbfe532bd2e (
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
56
57
58
59
|
# Contributor: Adam Nielsen <malvineous@shikadi.net>
# Contributor: Vitaliy Berdinskikh ur6lad[at]archlinux.org.ua
# Contributor: Andrea Agosti <cifvts@gmail.com>
# Contributor: Charles Clement <caratorn@gmail.com>
# Contributor: Geraldo Augusto Vecchiato <geraldoav@gmail.com>
# Maintainer: Adam Nielsen <malvineous@shikadi.net>
_pkgname=instantclient-basic
pkgname=oracle-${_pkgname}
pkgver=23.6.0.24.10
_pkgver_vendor_suffix=
_urlver=2360000
_unzippath=instantclient_23_6
pkgrel=1
pkgdesc="Light replacement for the Oracle client (files to run OCI, OCCI and JDBC-OCI programs)"
arch=('x86_64')
url="https://www.oracle.com/at/database/technologies/instant-client/downloads.html"
license=('custom:OTN')
depends=('gcc-libs' 'libaio')
replaces=('instantclient-basic' 'instantclient-basiclite')
options=(!strip)
# These are the only files we want to include in the source package
source=(LICENSE
oracle.sh
"https://download.oracle.com/otn_software/linux/instantclient/${_urlver}/${_pkgname}-linux.x64-${pkgver}${_pkgver_vendor_suffix}.zip")
md5sums=('2d62e22e4f2d7e6d220fafde0f692a7d'
'784005aa31cb56bb2303179d98fccd8e'
'f86bae607590a9f8cd2933e6d43d9e8e')
sha256sums=('f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2'
'36b5ab97950f1667403dd9b59c3cad25d8f9e457702feaece835d1bff7c971c9'
'83bc73bfc1a2d5971859f8df59cb12a8e2e8a43a3552f41b74127b55220fbc33')
package() {
cd "$srcdir/${_unzippath}/"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/usr/lib"
install -m 755 -t "$pkgdir/usr/bin" adrci genezi uidrvci
# Copy files but not symlinks
install -m 755 -t "$pkgdir/usr/lib" `find . -type f -name '*.so*'`
install -m 644 -t "$pkgdir/usr/lib" *.jar
# Copy across the script to set environment variables
install -Dm755 "$srcdir/oracle.sh" "$pkgdir/etc/profile.d/oracle.sh"
# create required symlinks
cd "$pkgdir/usr/lib" || return 1
local lib link
for lib in *.so*; do
link=$lib
while [[ ${link#*.} != so ]]; do
link=${link%.*}
ln -s $lib $link
done
done
install -Dm644 "$srcdir/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
}
|