wok-current view kexec-tools/receipt @ rev 17355

memtester: arm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 16 15:10:15 2014 +0100 (2014-11-16)
parents 7896f0694ef6
children 17e313b5b9c1
line source
1 # SliTaz package receipt.
3 PACKAGE="kexec-tools"
4 VERSION="2.0.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Directly boot into a new kernel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="ftp://ftp.kernel.org/pub/linux/utils/kernel/kexec/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="zlib-dev liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 export LDFLAGS="-lpthread"
22 case "$ARCH" in
23 i?86)
24 ./configure prefix=/usr \
25 --target=i386-linux ;;
26 *)
27 ./configure prefix=/usr \
28 --build=$BUILD_SYSTEM \
29 --host=$HOST_SYSTEM ;;
30 esac &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Important cross compiled package so run readelf.
36 testsuite()
37 {
38 cd $install
39 readelf -h usr/sbin/kexec
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/usr $fs
46 rm -rf $fs/usr/share
47 }