You are not logged in.

#1 2004-01-16 13:16:46

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

F (language)

F is a clean subset of Fortran95 : http://www.fortran.com/F/ Since it is a relatively uncommon language, I will not put it in incoming, instead check http://bootblock.de/arch/

Here is the PKGBUILD :

# Contributor: Andreas Schweitzer <andy@bootblock.de>
pkgname=f
pkgver=031017
pkgrel=1
pkgdesc="A compiler for the F language"
url="http://www.fortran.com/F/"
depends=(gcc)
conflicts=()
backup=()
install=
# the old version is needed to get the missing section 3 man pages !
source=(ftp://ftp.swcp.com/pub/walt/F/f_linux_$pkgver.tar.gz ftp://ftp.swcp.com/pub/walt/F/f_linux_020224.tar.gz)
md5sums=('72499dc68975c7f09312ff4d65f650a0' '85ab7d76f39fee2b93d3884e287438d2')

build() {
  mkdir -p $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/usr/lib/F
  mkdir -p $startdir/pkg/usr/share/F
  mkdir -p $startdir/pkg/usr/man/man1
  mkdir -p $startdir/pkg/usr/man/man3

  cd $startdir/src
  chown -R root:root *
  cd F_$pkgver
  cp bin/* $startdir/pkg/usr/bin
  mv $startdir/pkg/usr/bin/F $startdir/pkg/usr/bin/F_front
  cat > $startdir/pkg/usr/bin/F << 'EOF'
#!/bin/sh
exec /usr/bin/F_front -Qpath /usr/lib/F $@
EOF
  chmod a+rx $startdir/pkg/usr/bin/F
  cp -d -p lib/* $startdir/pkg/usr/lib/F
# fix the dynamic library (fppr and coco are linked against it)
  rm $startdir/pkg/usr/lib/F/libf96.so.1
  ln -s /usr/lib/F/libf96.so $startdir/pkg/usr/lib/F/libf96.so.1
  ln -s /usr/lib/F/libf96.so $startdir/pkg/usr/lib/libf96.so.1
  mv doc/*.1 $startdir/pkg/usr/man/man1
# The current (031017) version is missing the section 3 man pages. But they don't seemed
# to have changed, so I'm taking them from the older version.
  mv ../doc/*.3 $startdir/pkg/usr/man/man3
# most of that documentation is useful - some is duplicate
# note that I don't copy all the exmples which can be found on the web page
  cp doc/* $startdir/pkg/usr/share/F
  rm $startdir/pkg/usr/share/F/mp.pdf
  rm $startdir/pkg/usr/share/F/F.pdf
}

Offline

Board footer

Powered by FluxBB