wok view kexec-tools/receipt @ rev 24645

updated hiredis and hiredis-dev (0.14.0 -> 1.0.2)
author Hans-G?nter Theisgen
date Thu Mar 10 09:47:42 2022 +0100 (2022-03-10)
parents 9dbba587fe4e
children 9d7e40cf4a41
line source
1 # SliTaz package receipt.
3 PACKAGE="kexec-tools"
4 VERSION="2.0.17"
5 CATEGORY="system-tools"
6 SHORT_DESC="Directly boot into a new kernel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kexec/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="wget zlib-dev liblzma-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -lpthread"
28 case "$ARCH" in
29 i?86)
30 ./configure prefix=/usr \
31 --build=$BUILD_SYSTEM \
32 --host=$HOST_SYSTEM \
33 --target=i386-linux ;;
34 *)
35 ./configure prefix=/usr \
36 --build=$BUILD_SYSTEM \
37 --host=$HOST_SYSTEM ;;
38 esac &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Important cross compiled package so run readelf.
44 testsuite()
45 {
46 cd $install
47 readelf -h usr/sbin/kexec
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cp -a $install/usr $fs
54 rm -rf $fs/usr/share
55 }