Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

pkgbuild cernlib

By: a guest on Jun 11th, 2010  |  syntax: Bash  |  size: 4.55 KB  |  hits: 122  |  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: T.Cunly
  2.  
  3. pkgname=cernlib
  4.  
  5. pkgver=2006_32
  6. pkgrel=1
  7. _pkgver=2006-32
  8. _atlasver=3.8.3-4
  9. _atlascppver=0.6.1-5
  10.  
  11. pkgdesc="Large collection of general purpose libraries and modules in Fortran and C developed at CERN, oriented towards the needs of a physics research laboratory."
  12. arch=('x86_64' 'i686')
  13. makedepends=('rpmextract')
  14. url="http://cernlib.web.cern.ch/cernlib"
  15. license=('GPL')
  16.  
  17. install=cernlib.install
  18. depend=(rpmextract lesstif libxp)
  19. if [ "${CARCH}" = "x86_64" ]; then
  20. _rpmarch='x86_64'
  21. URLROOT=http://ftp.heanet.ie/pub/fedora/linux/releases/11/Everything/x86_64/os/Packages
  22. md5sums=('832090ccdb433c31caf383034aba8f5e '
  23.          '0d1cba3ac2548f71f10e51e417d1ca2f'
  24.          '9cc8b71da5f7d58dd94e58553eb1b3fa'
  25.          'ecfae5a0ce1bd43dd9ab9bed79ee9dd6'
  26.          'ee2a75b182757248cdd082ff20ded408'
  27.          '45ca4beb9f5c4904897dff42995d5b31'
  28.          '3b19b61e3c688b1ff5d3d75aae4b794e'
  29.          '5fcc401d93909aa2eaa0ef6b24b27080'
  30.          'cde30610d7e97f61ad68af116b77770b'
  31.          '1d2335546bee0b6cd10cb3b366687cda'
  32.          '5f8177ab929686c64080f65fd00049fa'
  33.          '33bed5b9dc956586f92858f421e0ce7e'
  34.          '7852858dd576a0b8863b3c64d3110b21'
  35.          'e579a94d3639c823a5e0a5e38413f7ab'
  36.          'acea2a24eeada48e5a69620c6d826f7f'
  37.          'ab766da7cff336d4086338dc1a87d1a7'
  38.          '92f3ef252595aac796be50b89a3fe5e8'
  39.          '795cff3a2ef5acb172ac7c9229d4a297'
  40.          '4955fe545cf63e0d1fd89548bf634a88'
  41.          '2b59558eecc708c7ec2f4802a09f2881'
  42.          'd28054b30b69fe1d80bba29cff9f95e1'
  43.          '220c3aa353710a0e52b10e63cda8efd2'
  44.          '44a0288cbffef180bad5669df0b42d25'
  45.          'a3a429222b98a108943fd09a1628f396'
  46.          'e84619a91e0c93b323c34d74c2156099')
  47. elif [ "${CARCH}" = "i686" ]; then
  48. _rpmarch=i586
  49. URLROOT=http://ftp.heanet.ie/pub/fedora/linux/releases/11/Everything/i386/os/Packages
  50. md5sums=('32e3a93691397b7be97a5d97954f1ccc'
  51.          '45178b732bac3ad9ae63525edcd10464'
  52.          'edda349d9227aa26c1844b15a865d560'
  53.          'f07cc56daa73edd5b18c9c288ec1bf74'
  54.          'd751a856a973356f61599f7c4c3225d9'
  55.          '82bda1dd1e365a60af0b7cd3eceb1707'
  56.          '0b323b0e29c216d692cd87d18ac71f8b'
  57.          '6954a6d174be64ffd9f20ec7426cc3ed'
  58.          'd548fb230770ef8336b4d6b56f153a6a'
  59.          '8959da6e0cf777082a7d232e88e7572a'
  60.          'b1f6fee2bd5396e58b815b1d4762f10d'
  61.          '95eed5a9d7b5c016097f935cff59e0ee'
  62.          '22166e3986ce3533d4d11024b3bcb13a'
  63.          'f3048e0f86ae884f6282be88f3e36345'
  64.          '595d61a95e6245b05fae438e20366c6a'
  65.          'e59e4a472a1b3e586efa4e5b1e164489'
  66.          '5f5e759c8bc078f6ebf333776386cc5a'
  67.          'd66dac5152522eb5c888af84db455929'
  68.          'e3c2431ce83a6461c74128c2773a8560'
  69.          '7a35756f973aa8b0c5d14ab6521e9cc1'
  70.          '551719957836c937d1ce26c947ee1b36'
  71.          'c30a6227ea76445289e4ff4093da67ca'
  72.          '2f7582e41cce4bd7684c8734ba9fccb0'
  73.          'e1085c450ef51ab16c633de5e1c08730'
  74.          'a1015f906c2e0e245c13d52aa3f0c5ce')
  75. fi
  76. source=($URLROOT/cernlib-${_pkgver}.fc11.${_rpmarch}.rpm \
  77.         $URLROOT/cernlib-static-${_pkgver}.fc11.${_rpmarch}.rpm   \
  78.         $URLROOT/cernlib-utils-${_pkgver}.fc11.${_rpmarch}.rpm \
  79.         $URLROOT/cernlib-devel-${_pkgver}.fc11.${_rpmarch}.rpm \
  80.         $URLROOT/cernlib-packlib-${_pkgver}.fc11.${_rpmarch}.rpm  \
  81.         $URLROOT/cernlib-packlib-gfortran-${_pkgver}.fc11.${_rpmarch}.rpm \
  82.         $URLROOT/cernlib-g77-${_pkgver}.fc11.${_rpmarch}.rpm \
  83.         $URLROOT/cernlib-g77-static-${_pkgver}.fc11.${_rpmarch}.rpm   \
  84.         $URLROOT/cernlib-g77-utils-${_pkgver}.fc11.${_rpmarch}.rpm \
  85.         $URLROOT/cernlib-g77-devel-${_pkgver}.fc11.${_rpmarch}.rpm \
  86.         $URLROOT/cernlib-packlib-g77-${_pkgver}.fc11.${_rpmarch}.rpm    \
  87.         $URLROOT/atlas-sse-${_atlasver}.fc11.${_rpmarch}.rpm  \
  88.         $URLROOT/atlas-sse-devel-${_atlasver}.fc11.${_rpmarch}.rpm   \
  89.         $URLROOT/atlascpp-${_atlascppver}.fc11.${_rpmarch}.rpm     \
  90.         $URLROOT/atlascpp-devel-${_atlascppver}.fc11.${_rpmarch}.rpm  \
  91.         $URLROOT/xbae-4.60.4-11.fc11.${_rpmarch}.rpm \
  92.         $URLROOT/kuipc-${_pkgver}.fc11.${_rpmarch}.rpm          \
  93.         $URLROOT/g2clib-devel-1.1.7-2.fc11.${_rpmarch}.rpm \
  94.         $URLROOT/compat-libf2c-34-3.4.6-13.${_rpmarch}.rpm \
  95.         $URLROOT/patchy-${_pkgver}.fc11.${_rpmarch}.rpm \
  96.         $URLROOT/patchy-g77-${_pkgver}.fc11.${_rpmarch}.rpm \
  97.         $URLROOT/patchy-gfortran-${_pkgver}.fc11.${_rpmarch}.rpm \
  98.         $URLROOT/paw-gfortran-${_pkgver}.fc11.${_rpmarch}.rpm \
  99.         $URLROOT/paw-g77-${_pkgver}.fc11.${_rpmarch}.rpm
  100.         $URLROOT/paw-${_pkgver}.fc11.${_rpmarch}.rpm)
  101. build() {
  102. #       rm $startdir/*.pkg.*
  103.         rm -r $srcdir/etc $srcdir/usr
  104.         cd "$srcdir"
  105.        
  106.         file=`ls`
  107.        
  108.         for i in $file
  109.         do
  110.                 rpmextract.sh $i
  111.         done
  112.        
  113.         if [ "${CARCH}" = "x86_64" ]; then
  114.         rm -r usr/lib64/cernlib/2006/bin
  115.        
  116.         cd ${srcdir}
  117.         rm usr/lib64/libg2c.so.0*
  118.         fi
  119.  
  120.         cd "$srcdir"
  121.         cp -r usr $pkgdir/
  122. }