wok-next view kexec-tools/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | 0fcf48f89432 |
children | d43bf7aae921 |
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="https://www.kernel.org/pub/linux/utils/kernel/kexec/"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 DEPENDS="zlib"
14 BUILD_DEPENDS="wget zlib-dev xz-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -lpthread"
20 case "$ARCH" in
21 i?86)
22 ./configure prefix=/usr \
23 --target=i386-linux ;;
24 *)
25 ./configure prefix=/usr \
26 --build=$BUILD_SYSTEM \
27 --host=$HOST_SYSTEM ;;
28 esac &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Important cross compiled package so run readelf.
34 testsuite()
35 {
36 cd $install
37 readelf -h usr/sbin/kexec
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/usr $fs
44 rm -rf $fs/usr/share
45 }