Permalink
Browse files

seisan v9.0.1

  • Loading branch information...
1 parent b4d4beb commit af0055f5c3b0a7ccb80f4723132b3058acbfe84b @gauteh committed Mar 15, 2012
Showing with 130 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +76 −0 seisan/2012-03-14-fix-compile-error-otherway-around.patch
  3. +53 −0 seisan/PKGBUILD
View
@@ -3,4 +3,5 @@
*/pkg
crossover-pro
*tgz
+*swp
@@ -0,0 +1,76 @@
+diff --git a/LIB/seed.for b/LIB/seed.for
+index 72d0f2a..a746db1 100644
+--- a/LIB/seed.for
++++ b/LIB/seed.for
+@@ -2502,7 +2502,7 @@ ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+
+ implicit none
+ integer*4 DAY,MON,YR,MTH(12),J
+- logical*1 isleap
++ logical isleap
+
+ integer*2 year
+
+@@ -2673,7 +2673,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*2 factor, multiplier ! sample rate components
+ integer*4 last ! last sample of decompressed sample
+
+- logical*1 calc_rate ! auxiliary function
++ logical calc_rate ! auxiliary function
+ integer*2 get_doy
+ logical computer_word_order ! function
+
+@@ -2962,7 +2962,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*4 next_diff ! next difference
+ integer*4 output(*) ! place where to put next output
+
+- logical*1 is_1byte, is_2byte ! auxiliary functions
++ logical is_1byte, is_2byte ! auxiliary functions
+
+ n = n+1
+ diff(1) = next_diff
+@@ -3035,7 +3035,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*4 next_diff ! next difference to queue
+ integer*4 output(*)
+
+- logical*1 is_1byte, is_2byte ! auxliary functions
++ logical is_1byte, is_2byte ! auxliary functions
+
+ n = n + 1
+ diff(2) = next_diff
+@@ -3066,7 +3066,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*4 next_diff ! next difference to queue
+ integer*4 output(*) ! place to put next output
+
+- logical*1 is_2byte ! auxiliary function
++ logical is_2byte ! auxiliary function
+
+ c WRITE(*,*) 'debug state 20'
+ diff(2) = next_diff
+@@ -3093,7 +3093,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*4 next_diff ! next difference to queue
+ integer*4 output(*) ! place to put next output
+
+- logical*1 is_1byte ! auxiliary function
++ logical is_1byte ! auxiliary function
+
+ diff(3) = next_diff
+ n = n + 1
+@@ -3118,7 +3118,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ integer*4 next_diff ! next difference to queue
+ integer*4 output(*) ! place to put next output
+
+- logical*1 is_1byte ! auxiliary function
++ logical is_1byte ! auxiliary function
+
+ diff(4) = next_diff
+ n = n + 1
+@@ -3227,7 +3227,7 @@ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+
+ integer*2 samples ! number of samples
+ integer*4 time_to_add ! time to add in fractions of seconds
+- logical*1 isleap ! auxliliary function
++ logical isleap ! auxliliary function
+ c change jh ock 2005, change samples +1 to samples in next line
+ time_to_add = ((samples) * 10000) / mseed_sample_rate
+ c WRITE (*,*) 'debug ',time_to_add
View
@@ -0,0 +1,53 @@
+# Contributor: Gaute Hope <eg@gaute.vetsj.com>
+
+# This package installs the source aswell as SUP/ archives
+
+pkgname=seisan
+pkgver=9.0.1
+pkgrel=1
+pkgdesc="SEISAN Earthquake analysis software package"
+arch=('i386 x86_64')
+url="http://www.uib.no/rg/geodyn/artikler/2010/02/software"
+license=('custom')
+depends=('gcc-fortran')
+source=('2012-03-14-fix-compile-error-otherway-around.patch' "ftp://ftp.geo.uib.no/pub/seismo/SOFTWARE/SEISAN_${pkgver}/seisan_v${pkgver}_linux_64bit.tar.gz")
+
+build() {
+ cd ${srcdir}
+ patch -p1 < 2012-03-14-fix-compile-error-otherway-around.patch
+
+ # Rebuilding..
+ export SEISARCH=gfortran
+ export OUTPATH=${pkgdir}
+
+ cd LIB/
+ rm -rf libmseed
+ make clean
+ tar zxf ../SUP/libmseed-*.tar.gz
+
+ cd ../PRO
+ make clean
+ make all
+
+ cd ../LIB
+ rm *.o
+ cd libmseed
+ rm *.o
+
+ cd ../../
+}
+
+package () {
+ mkdir -p ${pkgdir}/opt/seisan
+ cp -r ${srcdir}/{CAL,COM,DAT,INC,INF,ISO,LIB,PIC,PRO,REA,SUP,TMP,WAV,WOR} ${pkgdir}/opt/seisan
+
+ # Add seisan dirs to PATH
+ mkdir -p ${pkgdir}/etc/profile.d
+ echo 'export PATH=$PATH:/opt/seisan/PRO' > ${pkgdir}/etc/profile.d/seisan.sh
+ chmod +x ${pkgdir}/etc/profile.d/seisan.sh
+}
+
+
+md5sums=('980b8043673eb893a05e327ce99cf063'
+ '77bd256da404a078c9bd25e686c9792a')
+

0 comments on commit af0055f

Please sign in to comment.