updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / cernlib / PKGBUILD
bloba5bb95634e5ad52989a03c8270b623e32fc955e0
1 # Contributor: piggy1983@163.com
2 # Maybe need other packages.
4 pkgname=cernlib
5 pkgver=2006_35
6 pkgrel=1
7 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."
8 arch=('x86_64')
9 url="http://cernlib.web.cern.ch/cernlib"
10 license=('GPL')
12 depend=(rpmextract)
13 URLROOT=http://ftp.heanet.ie/pub/fedora/linux/releases/14/Everything/x86_64/os/Packages
15 install=cernlib.install
16 source=($URLROOT/cernlib-2006-35.fc14.x86_64.rpm \
17         $URLROOT/cernlib-static-2006-35.fc14.x86_64.rpm   \
18         $URLROOT/cernlib-utils-2006-35.fc14.x86_64.rpm \
19         $URLROOT/cernlib-devel-2006-35.fc14.x86_64.rpm \
20         $URLROOT/cernlib-packlib-gfortran-2006-35.fc14.x86_64.rpm  \
21         $URLROOT/patchy-gfortran-2006-35.fc14.x86_64.rpm )
22 md5sums=('b7663180d1acf72de5342f0c6f9495a9'
23          '5883954bd49a05022897feb0ce7949f3'
24          '19c388a15d9fa0a1fa3196a363856645'
25          'fe474e9888d920c8e912073526962f3d'
26          '0010464607246e64f730aed0eec60c7b'
27          'e6f13470b3abcb2628930721a0410e4b')
28 build() {
29         cd "$srcdir"
30         
31         for i in `ls`
32         do
33                 rpmextract.sh $i
34         done
36         mkdir -p $pkgdir/usr/local/lib/cernlib2006
37         cp -a usr/lib64/cernlib/2006/lib/*  $pkgdir/usr/local/lib/cernlib2006/
38         cp -a usr/{bin,include,share}  $pkgdir/usr/local/
40         echo "!!!ATTENTION!!!"
41         echo "If you have already installed the old version, You must uninstalled the old one first!!!"
43