wok view kexec-tools/receipt @ rev 17843

cups-filters: add pkg files bdeps
author Richard Dunbar <mojo@slitaz.org>
date Mon Mar 23 23:26:13 2015 -0400 (2015-03-23)
parents ead97edb5f62
children 36278632a653
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="$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 }