wok-next annotate kexec-tools/receipt @ rev 20762

Add leanify
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 05 17:27:09 2018 +0300 (2018-06-05)
parents c4e53a39395a
children d5aab818505e
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@14254 12
pascal@14254 13 DEPENDS="zlib"
al@20513 14 BUILD_DEPENDS="zlib-dev xz-dev"
pascal@14254 15
pascal@14254 16 # Rules to configure and make the package.
pascal@14254 17 compile_rules()
pascal@14254 18 {
pascal@17670 19 export LDFLAGS="$LDFLAGS -lpthread"
pascal@16398 20 case "$ARCH" in
pascal@16398 21 i?86)
pascal@16398 22 ./configure prefix=/usr \
pascal@16398 23 --target=i386-linux ;;
pascal@16398 24 *)
pascal@16398 25 ./configure prefix=/usr \
pascal@16398 26 --build=$BUILD_SYSTEM \
pascal@16398 27 --host=$HOST_SYSTEM ;;
pascal@16398 28 esac &&
pascal@14254 29 make &&
pascal@14254 30 make DESTDIR=$DESTDIR install
pascal@14254 31 }
pascal@14254 32
pascal@16398 33 # Important cross compiled package so run readelf.
pascal@16398 34 testsuite()
pascal@16398 35 {
pascal@16398 36 cd $install
pascal@16398 37 readelf -h usr/sbin/kexec
pascal@16398 38 }
pascal@16398 39
pascal@14254 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14254 41 genpkg_rules()
pascal@14254 42 {
pascal@14254 43 cp -a $install/usr $fs
pascal@14254 44 rm -rf $fs/usr/share
pascal@14254 45 }