diff --git a/pkg.info b/pkg.info index 3100f0a..5122747 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh index ea40c32..2524b6b 100644 --- a/source.sh +++ b/source.sh @@ -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 }