build-blocks:
- use modbuild in shebang - refactore function calls
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
pmodules.configure() {
|
||||
pbuild::configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pmodules.post_install() {
|
||||
pbuild::post_install() {
|
||||
ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
|
||||
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
|
||||
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
|
||||
}
|
||||
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_runtime_dependencies ""
|
||||
pmodules.set_build_dependencies "${COMPILER}"
|
||||
pmodules.make_all
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::set_runtime_dependencies ""
|
||||
pbuild::set_build_dependencies "${COMPILER}"
|
||||
pbuild::make_all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user