summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCUI Hao2017-01-07 19:29:38 +0800
committerCUI Hao2017-01-07 19:29:38 +0800
commitfec20ede4da6954d7eeb6a3fee2226a97c0b62f1 (patch)
tree51e6a258b4a71cda76d95aa4f5ad13271cd7e555
parent8eef5e760562cfa0bfef21ecc9767f52e9f7178a (diff)
downloadaur-fec20ede4da6954d7eeb6a3fee2226a97c0b62f1.tar.gz
fix bugs in PKGBUILD
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD8
-rw-r--r--seismic-unix.install4
3 files changed, 11 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad72c9688c9..0770a397a20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = seismic-unix
pkgdesc = A seismic processing and research environment developed at the Center for Wave Phenomena, Colorado School of Mines
pkgver = 44R1
- pkgrel = 1
+ pkgrel = 2
url = http://www.cwp.mines.edu/cwpcodes/
+ install = seismic-unix.install
arch = i686
arch = x86_64
license = custom
diff --git a/PKGBUILD b/PKGBUILD
index 0302b5f5c9d..0cd41c651c1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=seismic-unix
pkgver=44R1
-pkgrel=1
+pkgrel=2
pkgdesc="A seismic processing and research environment developed at the Center for Wave Phenomena, Colorado School of Mines"
arch=('i686' 'x86_64')
license=('custom')
@@ -14,8 +14,7 @@ optdepends=(
makedepends=('gcc-fortran')
source=("ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp_su_all_$pkgver.tgz")
sha1sums=('af86de42d9686ea8c7606ddc86e6211cce8f480d')
-
-export CWPROOT="$srcdir/build"
+install=seismic-unix.install
prepare() {
cd ${srcdir}/src
@@ -25,6 +24,8 @@ prepare() {
}
build() {
+ export CWPROOT="$srcdir/build"
+
mkdir -p "$CWPROOT"
cd "$CWPROOT"
ln -sf "$srcdir/src" src
@@ -39,6 +40,7 @@ build() {
}
package() {
+ local CWPROOT="$srcdir/build"
cd "$CWPROOT"
install -dm755 "$pkgdir/opt/$pkgname"
diff --git a/seismic-unix.install b/seismic-unix.install
new file mode 100644
index 00000000000..899daea2176
--- /dev/null
+++ b/seismic-unix.install
@@ -0,0 +1,4 @@
+post_install() {
+ echo "Seismic Unix has been installed under /opt/seismic-unix"
+ echo "Please re-login to update environment variables"
+}