wok annotate kexec-tools/receipt @ rev 18334

Updates licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 10 10:00:06 2015 +0200 (2015-09-10)
parents 17e313b5b9c1
children 543e0fa614bc
rev   line source
pascal@14254 1 # SliTaz package receipt.
pascal@14254 2
pascal@14254 3 PACKAGE="kexec-tools"
pascal@14254 4 VERSION="2.0.4"
pascal@14254 5 CATEGORY="system-tools"
pascal@14254 6 SHORT_DESC="Directly boot into a new kernel."
pascal@14254 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@14254 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@17923 10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/"
pascal@14254 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@16398 12 HOST_ARCH="i486 arm x86_64"
pascal@14254 13
pascal@14254 14 DEPENDS="zlib"
pascal@17923 15 BUILD_DEPENDS="wget zlib-dev liblzma-dev"
pascal@14254 16
pascal@14254 17 # Rules to configure and make the package.
pascal@14254 18 compile_rules()
pascal@14254 19 {
pascal@17670 20 export LDFLAGS="$LDFLAGS -lpthread"
pascal@16398 21 case "$ARCH" in
pascal@16398 22 i?86)
pascal@16398 23 ./configure prefix=/usr \
pascal@16398 24 --target=i386-linux ;;
pascal@16398 25 *)
pascal@16398 26 ./configure prefix=/usr \
pascal@16398 27 --build=$BUILD_SYSTEM \
pascal@16398 28 --host=$HOST_SYSTEM ;;
pascal@16398 29 esac &&
pascal@14254 30 make &&
pascal@14254 31 make DESTDIR=$DESTDIR install
pascal@14254 32 }
pascal@14254 33
pascal@16398 34 # Important cross compiled package so run readelf.
pascal@16398 35 testsuite()
pascal@16398 36 {
pascal@16398 37 cd $install
pascal@16398 38 readelf -h usr/sbin/kexec
pascal@16398 39 }
pascal@16398 40
pascal@14254 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14254 42 genpkg_rules()
pascal@14254 43 {
pascal@14254 44 cp -a $install/usr $fs
pascal@14254 45 rm -rf $fs/usr/share
pascal@14254 46 }