diff options
author | drrossum | 2015-07-29 12:20:39 -0500 |
---|---|---|
committer | Daniel R. van Rossum | 2015-07-29 12:20:39 -0500 |
commit | 963d82b11e0a50795c674794d5e9fc76c2802ba9 (patch) | |
tree | 3e1aefce296ff2c2e0e7f5a978161da626fb3415 | |
download | aur-963d82b11e0a50795c674794d5e9fc76c2802ba9.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | g95.install | 15 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ad0276d7a042 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = g95 + pkgdesc = A stable, production Fortran 95 compiler available for multiple cpu architectures and operating systems + pkgver = 0.94 + pkgrel = 2 + url = http://g95.sourceforge.net + arch = i686 + arch = x86_64 + license = GPL + depends = blas + depends = lapack + depends = gcc-libs + provides = g95 + +pkgname = g95 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b93b4a2c9d98 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Contributor: Eduardo Martins Lopes < edumlopes at gmail dot com > + +pkgname=g95 +pkgver=0.94 +pkgrel=2 +pkgdesc="A stable, production Fortran 95 compiler available for multiple cpu architectures and operating systems" +arch=('i686' 'x86_64') +url="http://g95.sourceforge.net" +license="GPL" +depends=('blas' 'lapack' 'gcc-libs' ) +makedepends=() +provides=('g95') +conflicts=() +replaces=() +backup=() +install= +if [ "$CARCH" = "i686" ]; then +source=(http://ftp.g95.org/g95-x86-linux.tgz g95.install) +md5sums=('663c7cc38029ab13f6d87ec21295e1fc' '852098b27f3b5b8154bcb38a2350a7bb') +fi + +if [ "$CARCH" = "x86_64" ]; then +source=(http://ftp.g95.org/g95-x86_64-64-linux.tgz g95.install) +md5sums=('815ca0a16198e6334e8661cd276bd5a4' '852098b27f3b5b8154bcb38a2350a7bb') +fi + +build() { + mkdir -p ${srcdir}/g95-install/share/doc + mv -f ${srcdir}/g95-install/{INSTALL,G95Manual.pdf} ${srcdir}/g95-install/share/doc/ +} +package() { + mkdir -p ${pkgdir}/usr + mkdir -p ${pkgdir}/lib + cp -r ${srcdir}/g95-install/* ${pkgdir}/usr + cd ${pkgdir}/usr/bin +if [ "$CARCH" = "i686" ]; then + ln -s i686-pc-linux-gnu-g95 g95 + +fi + +if [ "$CARCH" = "x86_64" ]; then + ln -s x86_64-unknown-linux-gnu-g95 g95 +fi +} diff --git a/g95.install b/g95.install new file mode 100644 index 000000000000..60c0792f5d41 --- /dev/null +++ b/g95.install @@ -0,0 +1,15 @@ +post_install() { + echo "This is the binary relase for AMD64/EMT64 technology." + echo "" + if [ "$CARCH" = "x86_64" ]; then + echo "This binary has default integer of 64bits!" + fi +} + +post_upgrade() { + post_install +} + +op=$1 +shift +$op $* |