View difference between Paste ID: 9U2cXNdz and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | # Contributor: Vitaliy Berdinskikh <skipper13@archlinux.org.ua> |
2 | # Contributor: Andrea Agosti <cifvts@gmail.com> | |
3 | # Contributor: Charles Clement <caratorn@gmail.com> | |
4 | # Contributor: Geraldo Augusto Vecchiato <geraldoav@gmail.com> | |
5 | # Maintainer: xduugu | |
6 | pkgname=instantclient-sdk | |
7 | pkgver=11.2.0.2.0 | |
8 | pkgrel=1 | |
9 | pkgdesc="Additional header files for developing Oracle applications with Instant Client" | |
10 | arch=('i686' 'x86_64') | |
11 | url="http://www.oracle.com/technology/tech/oci/instantclient/" | |
12 | license=('custom:OTN') | |
13 | depends=(instantclient-basic) | |
14 | # | |
15 | # grab the source from | |
16 | # i686 : http://www.oracle.com/technetwork/topics/linuxsoft-082809.html | |
17 | # x86_64: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html | |
18 | # | |
19 | source=($pkgname-linux32-$pkgver.zip LICENSE) | |
20 | md5sums=('a0034b6f3ea18480d9857de7777a515e' | |
21 | '2d62e22e4f2d7e6d220fafde0f692a7d') | |
22 | sha256sums=('172c0116de16f55abd775aaf4dd1666d0e64eb1226b43388974ccf83235c8b18' | |
23 | 'f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2') | |
24 | ||
25 | if [[ $CARCH = x86_64 ]]; then | |
26 | source=($pkgname-linux-x86-64-$pkgver.zip LICENSE) | |
27 | md5sums=('201ed479c9cfd3905cecbd213c656331' | |
28 | '2d62e22e4f2d7e6d220fafde0f692a7d') | |
29 | sha256sums=('9faf4edec8806e8ed38419d17587e19de673a9e0bbdeb24a9e232e118681500e' | |
30 | 'f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2') | |
31 | fi | |
32 | ||
33 | build() { | |
34 | local dest=$pkgdir/opt/${pkgname%%-*} | |
35 | ||
36 | # copy files | |
37 | local pkgver=${pkgver/./_} | |
38 | install -d "${dest%/*}" && | |
39 | cp -a "$srcdir/${pkgname%%-*}_${pkgver%%.*}" "$dest" || return 1 | |
40 | ||
41 | # fix permissions | |
42 | cd "$dest/sdk" && | |
43 | chmod -R a=r,u+w,a+X * || return 1 | |
44 | ||
45 | install -Dm644 "$srcdir/LICENSE" \ | |
46 | "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 | |
47 | } | |
48 | ||
49 | # vim:set ts=2 sw=2 noet: |