Simplify source.sh, fix dependencies and add package license
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
name: dejagnu
|
name: dejagnu
|
||||||
description: Test suite framework for other programs
|
description: Test suite framework for other programs
|
||||||
version: 1.6.3
|
version: 1.6.3
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://www.gnu.org/software/dejagnu/
|
url: https://www.gnu.org/software/dejagnu/
|
||||||
license: GPL
|
license: GPL
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["expect","bash"]
|
depends: ["expect","sh"]
|
||||||
make_depends: ["bash","coreutils","diffutils","expect","gcc","grep","make","sed","texinfo"]
|
make_depends: ["tcl"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,25 +15,28 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir -v build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
../configure --prefix=/usr
|
../configure --prefix=/usr
|
||||||
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
make
|
||||||
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
cd build
|
||||||
make check
|
|
||||||
|
SHELL=/bin/sh make check
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user