wok view kexec-tools/receipt @ rev 20538
linld: _fastcall calls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 28 19:46:10 2018 +0100 (2018-11-28) |
parents | 36278632a653 |
children | 9dbba587fe4e |
line source
1 # SliTaz package receipt.
3 PACKAGE="kexec-tools"
4 VERSION="2.0.17"
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="https://www.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="wget zlib-dev liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -lpthread"
21 case "$ARCH" in
22 i?86)
23 ./configure prefix=/usr \
24 --target=i386-linux ;;
25 *)
26 ./configure prefix=/usr \
27 --build=$BUILD_SYSTEM \
28 --host=$HOST_SYSTEM ;;
29 esac &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Important cross compiled package so run readelf.
35 testsuite()
36 {
37 cd $install
38 readelf -h usr/sbin/kexec
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/usr $fs
45 rm -rf $fs/usr/share
46 }