blob: c82838981089552371fdf22f75c90a08274b585c (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# 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: Girrese Reinehr <girrese@gmail.com>
_pkgname=instantclient-basic11
pkgname=oracle-${_pkgname}
pkgver=11.2.0.4.0
pkgrel=1
pkgdesc="Light replacement for the Oracle client (files to run OCI, OCCI and JDBC-OCI programs)"
arch=('i686' 'x86_64')
url="http://www.oracle.com/technetwork/database/features/instant-client/"
license=('custom:OTN')
depends=('gcc-libs' 'libaio')
replaces=('instantclient-basic' 'instantclient-basiclite')
options=(!strip)
# Fail if retrieval is attempted of any of the manual:// URLs
DLAGENTS+=('manual::/usr/bin/false');
# These are the only files we want to include in the source package
source=(LICENSE oracle.sh)
md5sums=('2d62e22e4f2d7e6d220fafde0f692a7d'
'784005aa31cb56bb2303179d98fccd8e')
sha256sums=('f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2'
'36b5ab97950f1667403dd9b59c3cad25d8f9e457702feaece835d1bff7c971c9')
# Add the main file, depending on which architecture we're building for
case "$CARCH" in
i686)
source[2]="manual://${_pkgname}-linux-$pkgver.zip"
md5sums[2]=''
sha256sums[2]=''
;;
x86_64)
source[2]="manual://${_pkgname}-linux.x64-$pkgver.zip"
md5sums[2]='e4242742f42e82eb08db261effcd4355'
sha256sums[2]='77efd0021c3e122075bf994786646e123063af843475395eb95b139501387160'
;;
esac
msg "Warning: This software cannot be downloaded automatically."
plain "You will need to sign up for an Oracle account and download the software from"
plain "Oracle directly. Place the downloaded file in the same directory as the"
plain "PKGBUILD and re-run makepkg."
plain ""
plain "The source .zip files can be downloaded from:"
plain ""
plain "i686 - http://www.oracle.com/technetwork/topics/linuxsoft-082809.html"
plain "x86_64 - http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html"
plain ""
plain "Alternatively, unofficial prebuilt Arch packages are available by adding the"
plain "following lines to /etc/pacman.conf, if you agree to the Oracle licence[1]:"
plain ""
plain " [oracle]"
plain " SigLevel = Optional TrustAll"
plain ' Server = http://linux.shikadi.net/arch/$repo/$arch/'
plain ""
plain "Then run 'pacman -Sys oracle' to see available packages."
plain ""
plain "[1]: http://www.oracle.com/technetwork/licenses/instant-client-lic-152016.html"
plain ""
package() {
cd "$srcdir/instantclient_11_2/"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/usr/lib"
install -m 755 -t "$pkgdir/usr/bin" adrci genezi uidrvci
install -m 755 -t "$pkgdir/usr/lib" *.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
}
|