Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

instantclient-sdk 11.2.0.2.0-1

By: a guest on Nov 7th, 2010  |  syntax: None  |  size: 1.79 KB  |  hits: 155  |  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: Charles Clement <caratorn@gmail.com>
  4. # Maintainer: xduugu
  5. pkgname=instantclient-sdk
  6. pkgver=11.2.0.2.0
  7. pkgrel=1
  8. pkgdesc="Additional header files for developing Oracle applications 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)
  13. #
  14. # grab the source from
  15. # i686  : http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
  16. # x86_64: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
  17. #
  18. source=($pkgname-linux32-$pkgver.zip LICENSE)
  19. md5sums=('a0034b6f3ea18480d9857de7777a515e'
  20.          '2d62e22e4f2d7e6d220fafde0f692a7d')
  21. sha256sums=('172c0116de16f55abd775aaf4dd1666d0e64eb1226b43388974ccf83235c8b18'
  22.             'f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2')
  23.  
  24. if [[ $CARCH = x86_64 ]]; then
  25.         source[0]=oracle-${pkgname%%-*}$(echo $pkgver | sed -r 's/^([0-9]+\.[0-9]+).*$/\1/')-${pkgname#*-}-${pkgver}.0-1.$CARCH.zip
  26.         md5sums=('201ed479c9cfd3905cecbd213c656331'
  27.            '2d62e22e4f2d7e6d220fafde0f692a7d')
  28.         sha256sums=('9faf4edec8806e8ed38419d17587e19de673a9e0bbdeb24a9e232e118681500e'
  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%/*}" &&
  38.         cp -a "$srcdir/${pkgname%%-*}_${pkgver%%.*}" "$dest" || return 1
  39.  
  40.         # fix permissions
  41.         cd "$dest/sdk" &&
  42.         chmod -R a=r,u+w,a+X * || return 1
  43.  
  44.         install -Dm644 "$srcdir/LICENSE" \
  45.                 "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
  46. }
  47.  
  48. # vim:set ts=2 sw=2 noet: