wok-6.x view kexec-tools/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 71360a13cd94 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="kexec-tools"
4 VERSION="2.0.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Directly boot into a new kernel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="liblzma-dev zlib-dev"
17 HOST_ARCH="i486 arm x86_64"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -lpthread"
31 case "$ARCH" in
32 i?86)
33 ./configure prefix=/usr \
34 --build=$BUILD_SYSTEM \
35 --host=$HOST_SYSTEM \
36 --target=i386-linux ;;
37 *)
38 ./configure prefix=/usr \
39 --build=$BUILD_SYSTEM \
40 --host=$HOST_SYSTEM ;;
41 esac &&
42 make &&
43 make install DESTDIR=$DESTDIR
44 }
46 # Important cross compiled package so run readelf.
47 testsuite()
48 {
49 cd $install
50 readelf -h usr/sbin/kexec
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cook_copy_folders lib
57 cook_copy_folders sbin
58 }