1 # Maintainer: Graziano Giuliani <graziano.giuliani@gmail.com>
5 pkgdesc="NCEP library to encode or decode BUFR messages"
7 url="http://www.nco.ncep.noaa.gov/sib/decoders/BUFRLIB/"
9 makedepends=(gcc-fortran)
10 source=('http://www.nco.ncep.noaa.gov/sib/decoders/BUFRLIB/BUFRLIB_v10-0-1.tar'
12 md5sums=('5c31b77eef5724df17b9c529061825bc'
13 'f9f43492185682b834428d79f718f28e')
19 export FCFLAGS=${CFLAGS}
22 echo ${CC} ${CFLAGS} -c -DUNDERSCORE *.c
23 ${CC} ${CFLAGS} -c -DUNDERSCORE *.c
24 echo ${FC} ${FCFLAGS} -c -DLITTLE_ENDIAN *.F
25 ${FC} ${FCFLAGS} -c -DLITTLE_ENDIAN *.F
26 echo ${FC} ${FCFLAGS} -c *.f
27 ${FC} ${FCFLAGS} -c *.f
28 ${AR} ${ARFLAGS} libbufr.a *.o
33 mkdir -p "$pkgdir/usr/lib"
34 mkdir -p "$pkgdir/usr/include"
35 mkdir -p "$pkgdir/usr/share/licenses/libbufr"
36 install -m 644 libbufr.a "$pkgdir/usr/lib"
37 install -m 644 bufrlib.h "$pkgdir/usr/include"
38 install -m 644 LICENSE "$pkgdir/usr/share/licenses/libbufr"
41 # vim:set ts=2 sw=2 et: