wok annotate kexec-tools/receipt @ rev 21088
updated jwm (2.2.0 -> 2.3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 15 16:26:21 2019 +0100 (2019-03-15) |
parents | 543e0fa614bc |
children | 71360a13cd94 |
rev | line source |
---|---|
pascal@14254 | 1 # SliTaz package receipt. |
pascal@14254 | 2 |
pascal@14254 | 3 PACKAGE="kexec-tools" |
pascal@20418 | 4 VERSION="2.0.17" |
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@20560 | 24 --build=$BUILD_SYSTEM \ |
pascal@20560 | 25 --host=$HOST_SYSTEM \ |
pascal@16398 | 26 --target=i386-linux ;; |
pascal@16398 | 27 *) |
pascal@16398 | 28 ./configure prefix=/usr \ |
pascal@16398 | 29 --build=$BUILD_SYSTEM \ |
pascal@16398 | 30 --host=$HOST_SYSTEM ;; |
pascal@16398 | 31 esac && |
pascal@14254 | 32 make && |
pascal@14254 | 33 make DESTDIR=$DESTDIR install |
pascal@14254 | 34 } |
pascal@14254 | 35 |
pascal@16398 | 36 # Important cross compiled package so run readelf. |
pascal@16398 | 37 testsuite() |
pascal@16398 | 38 { |
pascal@16398 | 39 cd $install |
pascal@16398 | 40 readelf -h usr/sbin/kexec |
pascal@16398 | 41 } |
pascal@16398 | 42 |
pascal@14254 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14254 | 44 genpkg_rules() |
pascal@14254 | 45 { |
pascal@14254 | 46 cp -a $install/usr $fs |
pascal@14254 | 47 rm -rf $fs/usr/share |
pascal@14254 | 48 } |