Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plan files for builder itself #59

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions plans/Builder/0.1/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
#
# Builder – Compile scripts for local installs of software packages.
# Copyright (C) 2020 Forschungszentrum Jülich GmbH, INM-6
#
# Builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Builder. If not, see <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
URL="https://github.com/INM-6/Builder/archive/v${VERSION}.tar.gz"
MD5SUM="d00f46d1ed303ef0585d4f5877a0881b"
SHA256SUM="c0c31bf219a655437064e61e6185b2e09dd40f961d695d0dbba59c9c58045985"

build_prepare() {
log_status ">>> nothing to prepare"
}
build_package() {
log_status ">>> nothing to build"
}
build_install () {
log_status ">>> installing..."
mkdir -pv "${LOG}"
cd "${SOURCE}"
mkdir -pv "${TARGET}"
cp -rv build_functions.sh plans "${TARGET}" 2>&1 | tee "${LOG}/make-install.log"
cp -rv build.sh "${TARGET}/build" 2>&1 | tee "${LOG}/make-install.log"
}
24 changes: 24 additions & 0 deletions plans/Builder/0.1/default.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#%Module1.0#####################################################################
#
# ${AUTOMATIC_BUILD_WARNING}
#
set INSTALLDIR "${TARGET}"

proc ModulesHelp { } {
puts stderr "
Collection of tools and scripts to install software on a system.

In contrast to usual packaging systems, the aim is to equally help users and
admins. Many aspects are inspired by Portage, which is used by the Gentoo
Linux distribution.

See https://github.com/INM-6/Builder
"
}

module-whatis "Bash testing framework (${VERSION})"

conflict ${PACKAGE}
${PREREQ_DEPENDS}

prepend-path PATH \$INSTALLDIR