Simplify source.sh, fix dependencies and add package license

This commit is contained in:
2025-04-14 17:11:15 +03:00
parent f604942434
commit 0eb3347756
2 changed files with 12 additions and 9 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
name: dejagnu
description: Test suite framework for other programs
version: 1.6.3
revision: 2
revision: 3
url: https://www.gnu.org/software/dejagnu/
license: GPL
architecture: any
depends: ["expect","bash"]
make_depends: ["bash","coreutils","diffutils","expect","gcc","grep","make","sed","texinfo"]
depends: ["expect","sh"]
make_depends: ["tcl"]
type: source
+9 -6
View File
@@ -15,25 +15,28 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir -v build
mkdir build
cd build
../configure --prefix=/usr
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
make
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
cd build
make check
SHELL=/bin/sh make check
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd build
make DESTDIR="$BPM_OUTPUT" install
install -v -dm755 "$BPM_OUTPUT"/usr/share/doc/dejagnu
install -v -m644 doc/dejagnu.{html,txt} "$BPM_OUTPUT"/usr/share/doc/dejagnu
# Install pacakge license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dejagnu/COPYING
}