wok-current annotate kexec-tools/receipt @ rev 25379
updated uget (2.2.1 -> 2.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 15:37:46 2022 +0100 (2022-07-30) |
parents | 71360a13cd94 |
children |
rev | line source |
---|---|
pascal@14254 | 1 # SliTaz package receipt. |
pascal@14254 | 2 |
pascal@14254 | 3 PACKAGE="kexec-tools" |
Hans-G?nter@24700 | 4 VERSION="2.0.23" |
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" |
Hans-G?nter@24700 | 9 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/" |
Hans-G?nter@24700 | 10 |
pascal@14254 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@14254 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@14254 | 13 |
pascal@14254 | 14 DEPENDS="zlib" |
Hans-G?nter@24700 | 15 BUILD_DEPENDS="liblzma-dev zlib-dev" |
Hans-G?nter@24700 | 16 |
Hans-G?nter@24700 | 17 HOST_ARCH="i486 arm x86_64" |
pascal@14254 | 18 |
pascal@24336 | 19 # What is the latest version available today? |
pascal@24336 | 20 current_version() |
pascal@24336 | 21 { |
pascal@24336 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 23 sed "/latest/d;/rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 24 } |
pascal@24336 | 25 |
pascal@14254 | 26 # Rules to configure and make the package. |
pascal@14254 | 27 compile_rules() |
pascal@14254 | 28 { |
pascal@17670 | 29 export LDFLAGS="$LDFLAGS -lpthread" |
Hans-G?nter@24700 | 30 |
pascal@16398 | 31 case "$ARCH" in |
pascal@16398 | 32 i?86) |
pascal@16398 | 33 ./configure prefix=/usr \ |
pascal@20560 | 34 --build=$BUILD_SYSTEM \ |
pascal@20560 | 35 --host=$HOST_SYSTEM \ |
pascal@16398 | 36 --target=i386-linux ;; |
pascal@16398 | 37 *) |
pascal@16398 | 38 ./configure prefix=/usr \ |
pascal@16398 | 39 --build=$BUILD_SYSTEM \ |
pascal@16398 | 40 --host=$HOST_SYSTEM ;; |
pascal@16398 | 41 esac && |
pascal@14254 | 42 make && |
Hans-G?nter@24700 | 43 make install DESTDIR=$DESTDIR |
pascal@14254 | 44 } |
pascal@14254 | 45 |
pascal@16398 | 46 # Important cross compiled package so run readelf. |
pascal@16398 | 47 testsuite() |
pascal@16398 | 48 { |
pascal@16398 | 49 cd $install |
pascal@16398 | 50 readelf -h usr/sbin/kexec |
pascal@16398 | 51 } |
pascal@16398 | 52 |
pascal@14254 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14254 | 54 genpkg_rules() |
pascal@14254 | 55 { |
Hans-G?nter@24700 | 56 cook_copy_folders lib |
Hans-G?nter@24700 | 57 cook_copy_folders sbin |
pascal@14254 | 58 } |