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

updated bwm-ng again (0.6.1 -> 0.6.2)
author Hans-G?nter Theisgen
date Tue Feb 12 16:18:56 2019 +0100 (2019-02-12)
parents 543e0fa614bc
children 71360a13cd94
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 --build=$BUILD_SYSTEM \
25 --host=$HOST_SYSTEM \
26 --target=i386-linux ;;
27 *)
28 ./configure prefix=/usr \
29 --build=$BUILD_SYSTEM \
30 --host=$HOST_SYSTEM ;;
31 esac &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Important cross compiled package so run readelf.
37 testsuite()
38 {
39 cd $install
40 readelf -h usr/sbin/kexec
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cp -a $install/usr $fs
47 rm -rf $fs/usr/share
48 }