binutils: add do_check() and checkdepends
This commit is contained in:
parent
21660919b9
commit
f9dface61c
|
@ -9,9 +9,13 @@ homepage="http://www.gnu.org/software/binutils/"
|
|||
license="GPL-3"
|
||||
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
||||
checksum=369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88
|
||||
nopie=yes
|
||||
|
||||
if [ "$CHROOT_READY" ]; then
|
||||
hostmakedepends="flex perl"
|
||||
checkdepends="bc"
|
||||
else
|
||||
export XBPS_CHECK_PKGS=0
|
||||
fi
|
||||
makedepends+=" zlib-devel"
|
||||
|
||||
|
@ -57,6 +61,9 @@ do_build() {
|
|||
make -C opcodes-pic clean
|
||||
make CFLAGS="$CFLAGS -fPIC" -C opcodes-pic
|
||||
}
|
||||
do_check() {
|
||||
make -k check
|
||||
}
|
||||
do_install() {
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
|
|
Loading…
Reference in New Issue