wok-current view util-linux/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | e53dd413c6de |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux"
4 VERSION="2.38"
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://mirrors.edge.kernel.org/pub/linux/utils/$PACKAGE/v$VERSION/$TARBALL"
14 # To avoid loop between util-linux / udev, build first time util-linux without udev
15 # and after build udev, rebuild util-linux with udev dep
17 BUILD_DEPENDS="gcc libcap-ng-dev ncursesw-dev readline-dev python-dev udev-dev"
18 SPLIT="util-linux-blkid
19 util-linux-blkid-dev
20 util-linux-blockdev
21 util-linux-cfdisk
22 util-linux-column
23 util-linux-cramfs
24 util-linux-eject
25 util-linux-fdisk
26 util-linux-fdisk-dev
27 util-linux-flock
28 util-linux-getopt
29 util-linux-losetup
30 util-linux-minix
31 util-linux-mkfs
32 util-linux-mount
33 util-linux-mount-dev
34 util-linux-partx
35 util-linux-setterm
36 util-linux-sfdisk
37 util-linux-smartcols
38 util-linux-smartcols-dev
39 util-linux-uuid
40 util-linux-uuid-dev
41 util-linux-whereis"
43 HOST_ARCH="i486 arm"
45 # What is the latest version available today?
46 current_version()
47 {
48 wget -O - ${WGET_URL%/*/*}$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
49 sed '/href/!d;s|.*">|/|;s|<.*||' | tail -n1) 2>/dev/null | \
50 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
51 }
53 # Rules to configure and make the package.
54 compile_rules()
55 {
56 # Fix undeclared 'LINE_MAX'
57 case "$ARCH" in
58 arm) sed -i s'|LINE_MAX|25|' text-utils/*.c ;;
59 esac
61 # First build --without-udev and rebuild with udev-dev dep
63 ./configure \
64 CC=gcc \
65 CXX=g++ \
66 --prefix=/usr \
67 --sysconfdir=/etc \
68 $CONFIGURE_ARGS &&
69 make &&
70 make install
71 }