Blame docker-builder-data/build/script/packet/superlu-5.2.1.sh

6675b2
DEPS="blas-3.7.0"
6675b2
6675b2
PK_DIRNAME="SuperLU_5.2.1"
6675b2
PK_ARCHIVE="superlu_5.2.1.tar.gz"
6675b2
PK_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/$PK_ARCHIVE"
6675b2
6675b2
source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh
6675b2
source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh
6675b2
6675b2
pkbuild() {
6675b2
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
6675b2
	
6675b2
	if ! (cp --remove-destination "$FILES_PACKET_DIR/mc64ad.c" "$BUILD_PACKET_DIR/$PK_DIRNAME/SRC/" \
6675b2
	 && cp --remove-destination "$FILES_PACKET_DIR/make.inc" "$BUILD_PACKET_DIR/$PK_DIRNAME/"); then
6675b2
		return 1
6675b2
	fi
6675b2
6675b2
	if ( ! HOME=$BUILD_PACKET_DIR make); then
6675b2
		return 1
6675b2
	fi
6675b2
}
6675b2
6675b2
pkinstall() {
6675b2
	cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/lib" "$INSTALL_PACKET_DIR" || return 1
6675b2
	mkdir -p "$INSTALL_PACKET_DIR/include/superlu-5.2.1"
6675b2
	cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/SRC/*.h "$INSTALL_PACKET_DIR/include/superlu-5.2.1" || return 1
6675b2
}