wok view util-linux/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | accf1450f9ce |
children | 03de36849d05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux"
4 VERSION="2.35.1"
5 CATEGORY="meta"
6 SHORT_DESC="Random collection of Linux utilities (meta package)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1 BSD PublicDomain"
9 WEB_SITE="https://en.wikipedia.org/wiki/Util-linux"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="libcap-ng-dev ncursesw-dev readline-dev python-dev udev-dev"
15 SPLIT="util-linux-bash-completion util-linux-blkid util-linux-blkid-dev
16 util-linux-blockdev util-linux-cfdisk util-linux-column util-linux-cramfs
17 util-linux-eject util-linux-fdisk util-linux-fdisk-dev util-linux-flock
18 util-linux-getopt util-linux-losetup util-linux-minix util-linux-mkfs
19 util-linux-mount util-linux-mount-dev util-linux-partx util-linux-setterm
20 util-linux-sfdisk util-linux-smartcols util-linux-smartcols-dev
21 util-linux-uuid util-linux-uuid-dev util-linux-whereis"
23 HOST_ARCH="i486 arm"
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - ${WGET_URL%/*/*}$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
29 sed '/href/!d;s|.*">|/|;s|<.*||' | tail -n1) 2>/dev/null | \
30 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # Fix undeclared 'LINE_MAX'
37 case "$ARCH" in
38 arm) sed -i s'|LINE_MAX|25|' text-utils/*.c ;;
39 esac
41 ./configure \
42 --prefix=/usr \
43 --sysconfdir=/etc \
44 $CONFIGURE_ARGS &&
45 make &&
46 make install
47 }