wok-current annotate kexec-tools/receipt @ rev 24573
updated freetype and freetype-dev (2.10.2 -> 2.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 07:45:56 2022 +0100 (2022-02-27) |
parents | 9dbba587fe4e |
children | 9d7e40cf4a41 |
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@24336 | 17 # What is the latest version available today? |
pascal@24336 | 18 current_version() |
pascal@24336 | 19 { |
pascal@24336 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 21 sed "/latest/d;/rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 22 } |
pascal@24336 | 23 |
pascal@14254 | 24 # Rules to configure and make the package. |
pascal@14254 | 25 compile_rules() |
pascal@14254 | 26 { |
pascal@17670 | 27 export LDFLAGS="$LDFLAGS -lpthread" |
pascal@16398 | 28 case "$ARCH" in |
pascal@16398 | 29 i?86) |
pascal@16398 | 30 ./configure prefix=/usr \ |
pascal@20560 | 31 --build=$BUILD_SYSTEM \ |
pascal@20560 | 32 --host=$HOST_SYSTEM \ |
pascal@16398 | 33 --target=i386-linux ;; |
pascal@16398 | 34 *) |
pascal@16398 | 35 ./configure prefix=/usr \ |
pascal@16398 | 36 --build=$BUILD_SYSTEM \ |
pascal@16398 | 37 --host=$HOST_SYSTEM ;; |
pascal@16398 | 38 esac && |
pascal@14254 | 39 make && |
pascal@14254 | 40 make DESTDIR=$DESTDIR install |
pascal@14254 | 41 } |
pascal@14254 | 42 |
pascal@16398 | 43 # Important cross compiled package so run readelf. |
pascal@16398 | 44 testsuite() |
pascal@16398 | 45 { |
pascal@16398 | 46 cd $install |
pascal@16398 | 47 readelf -h usr/sbin/kexec |
pascal@16398 | 48 } |
pascal@16398 | 49 |
pascal@14254 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14254 | 51 genpkg_rules() |
pascal@14254 | 52 { |
pascal@14254 | 53 cp -a $install/usr $fs |
pascal@14254 | 54 rm -rf $fs/usr/share |
pascal@14254 | 55 } |