build 431 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::configure() {
gsell's avatar
gsell committed
4 5 6 7
	cp "${BUILDSCRIPT_DIR}/Makefile" "${MODULE_BUILDDIR}"		|| exit 1
	cp "${MODULE_SRCDIR}/irat.inc" "${MODULE_BUILDDIR}"	|| exit 1
}

gsell's avatar
gsell committed
8
pbuild::install() {
gsell's avatar
gsell committed
9 10 11 12
	mkdir -p "${PREFIX}/bin"
	cp "${MODULE_BUILDDIR}/cpmd.x" "${PREFIX}/bin"
}

gsell's avatar
gsell committed
13 14 15 16
pbuild::add_to_group 'MPI'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
pbuild::set_build_dependencies "${COMPILER}" "${MPI}"
pbuild::make_all
gsell's avatar
gsell committed
17