updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / f2c / PKGBUILD
blob54bf88cd674471a6ef4ed61c1b5d9c1dd8bc28a6
1 # Contributor: Gabriele Lanaro <gabriele.lanaro@gmail.com>
3 pkgname=f2c
4 pkgver=1.0
5 pkgrel=2
6 url="http://en.wikipedia.org/wiki/F2c"
7 license=("LGPL")
8 pkgdesc="Fortran to C code translator."
9 arch=(i686 x86_64)
10 depends=()
11 makedepends=('gcc')
13 source=( 'https://computation.llnl.gov/casc/Overture/henshaw/software/f2c.tar.gz' )
15 build() {
16   cd ${srcdir}/${pkgname}/src/ 
17   make || return 1
18   mkdir -p ${pkgdir}/usr/bin
19   cp f2c ${pkgdir}/usr/bin || return 1
21   cd ${srcdir}/${pkgname}/libf2c/
22   make || return 1
23   mkdir -p ${pkgdir}/usr/lib ${pkgdir}/usr/include
24   make LIBDIR=${pkgdir}/usr/lib install || return 1
25   cp f2c.h ${pkgdir}/usr/include || return 1
26
27 md5sums=('d075c50dbde8683b2bdcb1e5857eaae1')