install HEASoft in Manjaro

raman kumar

Member
Joined
Aug 3, 2020
Messages
261
Reaction score
15
Credits
2,567
   ~  pamac build heasoft  ✔
Preparing...
Cloning heasoft build files...
Generating heasoft information...
Checking heasoft dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
heasoft 6.28-1 AUR


Edit build files : [e]
Apply transaction ? [e/y/N] y


Building heasoft...
==> Making package: heasoft 6.28-1 (Thursday 28 October 2021 05:01:30 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found heasoft-6.28src.tar.gz
==> Validating source files with md5sums...
heasoft-6.28src.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
Error: Failed to build heasoft
   ~ 
 


I'm tired of having to answer the same question over and over again.
 
Currently trying to build it myself but downloading the file is going quite slow.
2021-10-28_14_51_13.jpeg
 
The maintainer has to fix that.
 
1. mkdir ~/Downloads/git
2. cd ~/Downloads/git
3. cd heasoft
4. git clone https://aur.archlinux.org/heasoft.git
5. Open PKGBUILD with your favorite text editor and make the md5sums line look like this.
Code:
#md5sums=( a8ab35fd7da9166b4cd31e7365826251 )
md5sums=( 83c7ce1aa3ee6856be65a418fcd07346 )
6. Run: makepkg -isc
If you run into any other errors you will have to wait for the AUR package maintainer to fix it or you can compile it the way I showed you in one of your previous topics.
 
Last edited:
   ~  mkdir ~/Downloads/git  ✔
   ~  cd ~/Downloads/git  ✔
   ~/Downloads/git  cd heasoft  ✔
cd: no such file or directory: heasoft
   ~/Downloads/git  cd  1 ✘
   ~  ls  ✔
Desktop '- e-shiharai.net -.pdf' Music Templates
Documents 'HW strophysics.lyx' Pictures Videos
Downloads 'HW strophysics.lyx~' Public
   ~  cd /var/tmp/pamac-build-raman/heasoft/  ✔
   /var/t/p/heasoft    master !1 ?3  makepkg -isc  ✔
==> Making package: heasoft 6.28-1 (Friday 29 October 2021 09:53:13 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found heasoft-6.28src.tar.gz
==> Validating source files with md5sums...
heasoft-6.28src.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
Screenshot from 2021-10-29 09-54-26.png
 
# Maintainer: Yigit Dallilar <[email protected]>

pkgname=heasoft
pkgver=6.28
pkgrel=1
# _mod should be '', '_no_xspec_modeldata' or '_plus_older_xspec_modeldata'
_mod=''
pkgdesc='NASA high energy astrophysics library'
makedepends=("glibc" "gcc-fortran" "perl" "python-numpy")
depends=("ncurses" "readline" "libxpm" "libidn")
optdepends=("python-numpy: python binding")
url="https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/"
arch=('x86_64')
license=('NASA' 'GPL')
source=("https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft${pkgver}/heasoft-${pkgver}src${_mod}.tar.gz")

# You could use below to get offical md5
# curl -s ${source}.md5 | awk '{print "md5sums=(", $1, ")"}'
#md5sums=( a8ab35fd7da9166b4cd31e7365826251 )
md5sums=( 83c7ce1aa3ee6856be65a418fcd07346 )

install="$pkgname.install"

build() {
cd "heasoft-$pkgver/BUILD_DIR"

./configure --prefix="/opt/heasoft" --build="$CHOST"

# parallel builds may fail
make -j1
}

package(){
local glibcver HEADAS

cd "heasoft-$pkgver/BUILD_DIR"

make -j1 DESTDIR="$pkgdir" install

glibcver=$(ldd --version | sed -n 's/ldd (GNU libc) //p')
HEADAS="/opt/heasoft/${CHOST}-libc${glibcver}"

install -d "$pkgdir/etc/profile.d"
cat > "$pkgdir/etc/profile.d/heasoft.sh" <<EOF
export HEADAS="${HEADAS}"
alias heainit='. "${HEADAS}/headas-init.sh"'
EOF
}
 
Copy and paste the above.
 
   ~  sudo heainit  ✔
[sudo] password for raman:
sudo: heainit: command not found
   ~  heainit  1 ✘  4s 
zsh: command not found: heainit
   ~ 
Screenshot from 2021-11-29 19-17-45.png
 


Top