updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / iraf / PKGBUILD
blob6b891fd724c2d9202ee9e0abd2426af36987652e
1 # Contributor: XaBz <xabz.2k5@gmail.com>
3 pkgname=iraf
4 pkgver=2.15
5 pkgrel=1
6 pkgdesc="Image Reduction and Analysis Facility"
7 arch=('i686' 'x86_64')
8 url="http://iraf.noao.edu/"
9 license=('MIT')
10 groups=()
11 depends=('tcsh' 'libxmu' 'tcl')
12 optdepends=()
13 makedepends=()
14 backup=()
15 install=iraf.install
17 source=('http://iraf.noao.edu/iraf/ftp/iraf/v215/PCIX/as.pcix.gen.gz' 
18         'http://iraf.noao.edu/iraf/ftp/iraf/v215/PCIX/nb.lnux.x86.gz' 
19         'http://iraf.noao.edu/iraf/ftp/iraf/v215/PCIX/ib.lnux.x86.gz' 
20         'http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gz' 
21         'http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.6.2.tar.gz'
22         'iraf.desktop' 'iraf.png' 'iraf.run' 'iraf-install.run')
24 [[ $CARCH = x86_64 ]] && source=('http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/as.pcix.gen.gz' 
25         'http://iraf.noao.edu/iraf/ftp/iraf/v215/PCIX/nb.lnux.x86_64.gz' 
26         'http://iraf.noao.edu/iraf/ftp/iraf/v215/PCIX/ib.lnux.x86_64.gz' 
27         'http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gz' 
28         'http://hea-www.harvard.edu/saord/download/ds9/linux64/ds9.linux64.6.2.tar.gz'
29         'iraf.desktop' 'iraf.png' 'iraf.run' 'iraf-install.run')
31 noextract=('as.pcix.gen.gz' 'nb.lnux.x86.gz' 'ib.lnux.x86.gz' 'x11iraf-v2.0BETA-bin.linux.tar.gz' 'ds9.linux.6.2.tar.gz')
32 [[ $CARCH = x86_64 ]] && noextract=('as.pcix.gen.gz' 'nb.lnux.x86_64.gz' 'ib.lnux.x86_64.gz' 'x11iraf-v2.0BETA-bin.linux.tar.gz' 'ds9.linux64.6.2.tar.gz')
34 md5sums=('83361cb665ec126d1195340a0592294f'
35          '6e3aed6cb07220def449f0d8b7786429'
36          '17a7d4d04b900478000d028d1c11a3c0'
37          '059c26f38f2656d1acf9d3972cf761b0'
38          '3040efff306102e89a2565e031c4c497'
39          'ca522aa61b7685bb5247b606df16f31f'
40          '556669a44c89e38c09aa6b75052fcee5'
41          '37ca80752e73ed263243b0fce098d299'
42          'ae9c71e0591c7636a7351eacf9bb10ef')
45 [[ $CARCH = x86_64 ]] && md5sums=('83361cb665ec126d1195340a0592294f'
46          'fe40850e4baac66f6816ff7362121617'
47          'c1d93518447a3f1080d16e210acdee5e'
48          '059c26f38f2656d1acf9d3972cf761b0'
49          '5fb04651d523a863ecdfd214a283ef5e'
50          'ca522aa61b7685bb5247b606df16f31f'
51          '556669a44c89e38c09aa6b75052fcee5'
52          '37ca80752e73ed263243b0fce098d299'
53          'ae9c71e0591c7636a7351eacf9bb10ef')
55 build() {
56   
57   mkdir -p $pkgdir/iraf/iraf/local
58   mkdir -p $pkgdir/iraf/irafbin/bin.linux
59   mkdir -p $pkgdir/iraf/irafbin/noao.bin.linux
60   mkdir -p $pkgdir/iraf/extern
61   mkdir -p $pkgdir/usr/lib/X11/app-defaults
62   mkdir -p $pkgdir/usr/local/src/x11iraf
63   mkdir -p $pkgdir/usr/local/bin
64   mkdir -p $pkgdir/usr/local/lib
65   mkdir -p $pkgdir/usr/bin
66   mkdir -p $pkgdir/usr/share/applications
67   mkdir -p $pkgdir/usr/share/pixmaps
69   cd $pkgdir/iraf/iraf
70   cat $srcdir/as.pcix.gen.gz | zcat | tar -xpf -
71   cd $pkgdir/iraf/irafbin/bin.linux
72   cat $srcdir/ib.lnux.*.gz | zcat | tar -xpf -
73   cd $pkgdir/iraf/irafbin/noao.bin.linux
74   cat $srcdir/nb.lnux.*.gz | zcat | tar -xpf -
75   cd $pkgdir/usr/local/src/x11iraf
76   tar -xzf $srcdir/x11iraf-v2.0BETA-bin.linux.tar.gz
77   
78   install -Dm644 $srcdir/iraf.desktop $pkgdir/usr/share/applications/iraf.desktop
79   install -Dm644 $srcdir/iraf.png $pkgdir/usr/share/pixmaps/iraf.png
80   install -Dm755 $srcdir/iraf.run $pkgdir/usr/bin/iraf
81   install -Dm755 $srcdir/iraf-install.run $pkgdir/usr/bin/iraf-install
82   install -Dm644 $srcdir/ds9.linux*.*.tar.gz $pkgdir/usr/local/bin/ds9.linux.tar.gz
83   ln -s /usr/local/bin/mkiraf $pkgdir/usr/bin/mkiraf
84