diff options
author | CUI Hao | 2017-01-07 19:29:38 +0800 |
---|---|---|
committer | CUI Hao | 2017-01-07 19:29:38 +0800 |
commit | fec20ede4da6954d7eeb6a3fee2226a97c0b62f1 (patch) | |
tree | 51e6a258b4a71cda76d95aa4f5ad13271cd7e555 | |
parent | 8eef5e760562cfa0bfef21ecc9767f52e9f7178a (diff) | |
download | aur-fec20ede4da6954d7eeb6a3fee2226a97c0b62f1.tar.gz |
fix bugs in PKGBUILD
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | seismic-unix.install | 4 |
3 files changed, 11 insertions, 4 deletions
@@ -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 @@ -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 000000000000..899daea21769 --- /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" +} |