Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

instantclient-sqlplus 11.2

By: a guest on Feb 25th, 2011  |  syntax: None  |  size: 1.80 KB  |  views: 169  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Vitaliy Berdinskikh <skipper13@archlinux.org.ua>
  2. # Contributor: Andrea Agosti <cifvts@gmail.com>
  3. # Contributor: Geraldo Augusto Vecchiato <geraldoav@gmail.com>
  4. # Maintainer: xduugu
  5. pkgname=instantclient-sqlplus
  6. pkgver=11.2.0.2.0
  7. pkgrel=1
  8. pkgdesc="Additional libraries and executable for running SQL*Plus with Instant Client."
  9. arch=('i686' 'x86_64')
  10. url="http://www.oracle.com/technology/tech/oci/instantclient/"
  11. license=('custom:OTN')
  12. depends=("instantclient-basic=$pkgver")
  13. #
  14. # grab the source from
  15. # i686  : http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
  16. # x86_64: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
  17. #
  18. source=($pkgname-linux32-$pkgver.zip LICENSE)
  19. md5sums=('6d6912d016d42fcc36335275885c781f'
  20.          '2d62e22e4f2d7e6d220fafde0f692a7d')
  21. sha256sums=('35f1d447b0b368bcafd4fcff6bb04139e568176f0081a60aea1939099754ea0a'
  22.             'f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2')
  23.  
  24. if [[ $CARCH = x86_64 ]]; then
  25.         source=($pkgname-linux-x86-64-$pkgver.zip LICENSE)
  26.         md5sums=('805460a9d387c53c615e64d026bf15b9'
  27.            '2d62e22e4f2d7e6d220fafde0f692a7d')
  28.         sha256sums=('6975856f27c66d44b5c57c9ffa877f8aa5648ae8e4bda925d719b8609bbbf285'
  29.               'f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2')
  30. fi
  31.  
  32. build() {
  33.         local dest=$pkgdir/opt/${pkgname%%-*}
  34.  
  35.         # copy files
  36.         local pkgver=${pkgver/./_}
  37.         install -d "${dest%/*}" "$pkgdir/usr/bin" &&
  38.         cp -a "$srcdir/${pkgname%%-*}_${pkgver%%.*}" "$dest" &&
  39.         ln -s "/opt/${pkgname%%-*}/sqlplus" \
  40.                 "$pkgdir/usr/bin/" || return 1
  41.  
  42.         # fix permissions
  43.         cd "$dest" &&
  44.         chmod a=rx,u+w * &&
  45.         chmod a-x *_README *.sql || return 1
  46.  
  47.         install -Dm644 "$srcdir/LICENSE" \
  48.                 "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
  49. }
  50.  
  51. # vim:set ts=2 sw=2 noet:
clone this paste RAW Paste Data