Skip to content

Instantly share code, notes, and snippets.

@holymonson

holymonson/PKGBUILD Secret

Created Apr 6, 2020
Embed
What would you like to do?
heasoft 6.27
# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com>
#
# for _mod use either (src_no_xspec_modeldata or src) and dont forget to change sha256sums
pkgname=heasoft
pkgver=6.27
pkgrel=1
_mod="src_no_xspec_modeldata"
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}/${pkgname}-${pkgver}${_mod}.tar.gz")
sha256sums=('a2359c2c765828eb9c1782769398e2a1f83cbcd3d46fb1be6b59a89b847cc5d4')
build() {
cd "$srcdir/${pkgname}-${pkgver}/BUILD_DIR"
./configure --prefix="/opt/${pkgname}" --build=${CHOST}
make
}
package(){
local glibcver HEADAS
cd "$srcdir/${pkgname}-${pkgver}/BUILD_DIR"
make DESTDIR="$pkgdir" install
glibcver=`ldd --version | sed -n 's/ldd (GNU libc) //p'`
HEADAS="/opt/${pkgname}/${CHOST}-libc${glibcver}"
install -d "$pkgdir"/{usr/bin,etc/profile.d}
ln -s "${HEADAS}/headas-init.sh" "$pkgdir/usr/bin/"
echo "export HEADAS=${HEADAS}" > "$pkgdir/etc/profile.d/heasoft.sh"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.