summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhoffer.joshua2019-04-09 09:16:03 -0600
committerhoffer.joshua2019-04-09 09:16:03 -0600
commit14eb103648d3afa3300ba01fb100fcb5f16c198f (patch)
treefc6559fc2c16113e5cc262ef804a307aab0ccbca
parent6bf29e9154ab86d69ea18fc103d4026bbb5cbb17 (diff)
downloadaur-14eb103648d3afa3300ba01fb100fcb5f16c198f.tar.gz
updated PKGBUILD to compile with modern glibc versions (post-sunRPC change), increased gcc optimization level, retained /opt install directory
-rwxr-xr-x[-rw-r--r--]PKGBUILD53
1 files changed, 35 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fb87125ca74..5acf70f7fea 100644..100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,55 @@
-# Maintainer: CUI Hao <cuihao.leo@gmail.com>
+# Maintainer: Josh Hoffer <hoffer.joshua@gmail.com>
+# Past-Maintainer: CUI Hao <cuihao.leo@gmail.com>
pkgname=seismic-unix
-pkgver=44R4
-pkgrel=1
-pkgdesc="A seismic processing and research environment developed at the Center for Wave Phenomena, Colorado School of Mines"
+pkgver=44.14
+pkgrel=3
+pkgdesc='A seismic processing and research environment developed \
+at the Center for Wave Phenomena, Colorado School of Mines'
arch=('i686' 'x86_64')
license=('custom')
url="http://www.cwp.mines.edu/cwpcodes/"
-depends=('freeglut' 'glu' 'libxmu' 'lesstif')
+depends=('libtirpc' 'libxi' 'libglvnd' 'libxmu')
+#depends=('freeglut' 'glu' 'libxmu' 'lesstif' 'libtirpc' 'libtirpc-compat')
+#depends=('freeglut' 'glu' 'libxmu' 'openmotif')
+#depends=('freeglut' 'glu' 'libxmu')
optdepends=(
'tcsh: some scripts'
'gcc-fortran: Fortran support')
-makedepends=('gcc-fortran')
-source=("ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp_su_all_$pkgver.tgz")
-sha1sums=('2456bfa4145ba5e8c03d9ffe85173b6657972bb3')
+makedepends=('git' 'gcc-fortran' 'libtirpc' 'libtirpc-compat' 'lesstif' 'glu' 'libxmu' 'freeglut')
+#source=("ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp_su_all_$pkgver.tgz")
+#sha1sums=('2456bfa4145ba5e8c03d9ffe85173b6657972bb3')
+source=("git+https://github.com/JohnWStockwellJr/SeisUnix.git")
+md5sums=("SKIP")
install=seismic-unix.install
prepare() {
- cd ${srcdir}/src
+ cd ${srcdir}/SeisUnix/src
+ # start fresh
+ rm -rf ../bin/
+ rm -rf ../lib/
+ # removing all *.o files (fixes issues)
+ find . -type f -iname '*.o' -exec rm {} \;
sed -i 's_/usr/X11[^/]*/_/usr/_' Makefile.config
+ sed -i 's/BSD_SOURCE/DEFAULT_SOURCE/' Makefile.config
+ sed -i 's/-O/-O2/' Makefile.config
+ sed -i '/^OPTC/ s/$/-ltirpc -no-pie/' Makefile.config
+ sed -i '/^POSTLFLAGS/ s/$/ -no-pie/' Makefile.config
+ sed -i '/^FOPTS/ s/$/-std=legacy -no-pie/' Makefile.config
sed -i 's_read RESP_RESP=y_' chkroot.sh
echo -ne '#!/bin/sh\ntrue\n' | tee license.sh mailhome.sh
}
build() {
- export CWPROOT="$srcdir/build"
+ export CWPROOT="$srcdir/SeisUnix/build"
+ #export CWPROOT="$srcdir/SeisUnix"
mkdir -p "$CWPROOT"
cd "$CWPROOT"
- ln -sf "$srcdir/src" src
+ ln -sf "$srcdir/SeisUnix/src" src
+ #ln -sf "$srcdir/seismic-unix/src" src
- cd "$srcdir/src"
+ cd "$srcdir/SeisUnix/src"
make -j1 install
make -j1 xtinstall
make -j1 xminstall
@@ -40,9 +59,8 @@ build() {
}
package() {
- local CWPROOT="$srcdir/build"
+ export CWPROOT="$srcdir/SeisUnix/build"
cd "$CWPROOT"
-
install -dm755 "$pkgdir/opt/$pkgname"
cp -r {,"$pkgdir/opt/$pkgname/"}bin/
cp -r {,"$pkgdir/opt/$pkgname/"}include/
@@ -51,10 +69,9 @@ package() {
chmod -R a+r "$pkgdir/opt/$pkgname"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
- install -m644 "$srcdir/src/LEGAL_STATEMENT" "$pkgdir/usr/share/licenses/$pkgname"
- install -m644 "$srcdir/src/ACKNOWLEDGEMENTS" "$pkgdir/usr/share/licenses/$pkgname"
-
- install -dm755 "$pkgdir/etc/profile.d"
+ install -m644 "$srcdir/SeisUnix/src/LEGAL_STATEMENT" "$pkgdir/usr/share/licenses/$pkgname"
+ install -m644 "$srcdir/SeisUnix/src/ACKNOWLEDGEMENTS" "$pkgdir/usr/share/licenses/$pkgname"
+ install -dm755 "$pkgdir/etc/profile.d/"
cat > "$pkgdir/etc/profile.d/$pkgname.sh" << EOF
#!/bin/bash
export CWPROOT="/opt/$pkgname"