diff options
author | Danilo J. S. Bellini | 2016-12-20 14:34:28 -0200 |
---|---|---|
committer | Danilo J. S. Bellini | 2016-12-20 14:34:28 -0200 |
commit | 4f6df2a787e8eba49644561c16b127a3c41edcae (patch) | |
tree | 9992f4f444d98b51058852a345239c0b65eebe73 /PKGBUILD | |
download | aur-4f6df2a787e8eba49644561c16b127a3c41edcae.tar.gz |
v1.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42401ec558ef --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com> +pkgname=('6sv11') +pkgver=1.1 +pkgrel=1 +_6s="Second Simulation of a Satellite Signal in the Solar Spectrum" +pkgdesc="$_6s - Vector - 1.1" +arch=('i686' 'x86_64') +url='http://6s.ltdri.org' +license=('custom') +makedepends=('gcc-fortran') +depends=('gcc-libs') +options=(!emptydirs) +source=("https://dl.dropboxusercontent.com/u/315580/6SV-1.1.zip") +sha256sums=('955f4a59c8a853c68a31321f2ed3f22fbda504e168d08d2e02b9ded9b582bf31') + +prepare() { + cd "$srcdir/6SV-1.1/6SV1.1/" + + # Use gfortran instead of g77 and add some extra options as described in + # http://py6s.readthedocs.io/en/latest/installation.html + _fopts='-std=legacy -ffixed-line-length-none -ffpe-summary=none' + sed -i "s/g77/gfortran $_fopts/g" Makefile + + # Creates a standalone license file from the only source file with this info + cat > ../LICENSE <<EOF +The 6SV Fortran library doesn't specify its license anywhere. +However, the text below is written as comments for the mvbp1 function +in the VERSTOOLS.f source file: + +remarks: + +[...] + +EOF + sed -n '/5. t/,/your u/s/^c\s\?\s\?//p' "VERSTOOLS.f" >> ../LICENSE +} + +build() { + cd "$srcdir/6SV-1.1/6SV1.1/" + make +} + +package() { + cd "$srcdir/6SV-1.1/6SV1.1/" + install -Dm755 sixsV1.1 "$pkgdir/usr/bin/sixsV1.1" + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |