wok view kexec-tools/receipt @ rev 17945

squashfs: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 15 17:06:17 2015 +0200 (2015-04-15)
parents 17e313b5b9c1
children 543e0fa614bc
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"
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 }