wok-current annotate util-linux/receipt @ rev 25701
Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Apr 19 12:48:51 2024 +0000 (6 months ago) |
parents | e53dd413c6de |
children |
rev | line source |
---|---|
pankso@12480 | 1 # SliTaz package receipt. |
pankso@12480 | 2 |
pankso@12480 | 3 PACKAGE="util-linux" |
Hans-G?nter@25393 | 4 VERSION="2.38" |
pankso@12480 | 5 CATEGORY="meta" |
Hans-G?nter@22091 | 6 SHORT_DESC="Random collection of Linux utilities (meta package)." |
pankso@12480 | 7 MAINTAINER="pankso@slitaz.org" |
al@19253 | 8 LICENSE="GPL2 LGPL2.1 BSD PublicDomain" |
al@19253 | 9 WEB_SITE="https://en.wikipedia.org/wiki/Util-linux" |
Hans-G?nter@22091 | 10 |
al@19253 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@25393 | 12 WGET_URL="https://mirrors.edge.kernel.org/pub/linux/utils/$PACKAGE/v$VERSION/$TARBALL" |
pankso@12480 | 13 |
shann@25629 | 14 # To avoid loop between util-linux / udev, build first time util-linux without udev |
shann@25629 | 15 # and after build udev, rebuild util-linux with udev dep |
shann@25629 | 16 |
shann@25629 | 17 BUILD_DEPENDS="gcc libcap-ng-dev ncursesw-dev readline-dev python-dev udev-dev" |
Hans-G?nter@25393 | 18 SPLIT="util-linux-blkid |
Hans-G?nter@25393 | 19 util-linux-blkid-dev |
Hans-G?nter@25393 | 20 util-linux-blockdev |
Hans-G?nter@25393 | 21 util-linux-cfdisk |
Hans-G?nter@25393 | 22 util-linux-column |
Hans-G?nter@25393 | 23 util-linux-cramfs |
Hans-G?nter@25393 | 24 util-linux-eject |
Hans-G?nter@25393 | 25 util-linux-fdisk |
Hans-G?nter@25393 | 26 util-linux-fdisk-dev |
Hans-G?nter@25393 | 27 util-linux-flock |
Hans-G?nter@25393 | 28 util-linux-getopt |
Hans-G?nter@25393 | 29 util-linux-losetup |
Hans-G?nter@25393 | 30 util-linux-minix |
Hans-G?nter@25393 | 31 util-linux-mkfs |
Hans-G?nter@25393 | 32 util-linux-mount |
Hans-G?nter@25393 | 33 util-linux-mount-dev |
Hans-G?nter@25393 | 34 util-linux-partx |
Hans-G?nter@25393 | 35 util-linux-setterm |
Hans-G?nter@25393 | 36 util-linux-sfdisk |
Hans-G?nter@25393 | 37 util-linux-smartcols |
Hans-G?nter@25393 | 38 util-linux-smartcols-dev |
Hans-G?nter@25393 | 39 util-linux-uuid |
Hans-G?nter@25393 | 40 util-linux-uuid-dev |
Hans-G?nter@25393 | 41 util-linux-whereis" |
pankso@12480 | 42 |
Hans-G?nter@22091 | 43 HOST_ARCH="i486 arm" |
Hans-G?nter@22091 | 44 |
pascal@24304 | 45 # What is the latest version available today? |
pascal@24304 | 46 current_version() |
pascal@24304 | 47 { |
pascal@24304 | 48 wget -O - ${WGET_URL%/*/*}$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24304 | 49 sed '/href/!d;s|.*">|/|;s|<.*||' | tail -n1) 2>/dev/null | \ |
pascal@24304 | 50 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24304 | 51 } |
pascal@24304 | 52 |
pankso@12480 | 53 # Rules to configure and make the package. |
pankso@12480 | 54 compile_rules() |
pankso@12480 | 55 { |
pankso@12927 | 56 # Fix undeclared 'LINE_MAX' |
pankso@12927 | 57 case "$ARCH" in |
pankso@12927 | 58 arm) sed -i s'|LINE_MAX|25|' text-utils/*.c ;; |
pankso@12927 | 59 esac |
al@19253 | 60 |
shann@25629 | 61 # First build --without-udev and rebuild with udev-dev dep |
shann@25629 | 62 |
Hans-G?nter@22091 | 63 ./configure \ |
shann@25582 | 64 CC=gcc \ |
shann@25582 | 65 CXX=g++ \ |
Hans-G?nter@22091 | 66 --prefix=/usr \ |
Hans-G?nter@22091 | 67 --sysconfdir=/etc \ |
pankso@12480 | 68 $CONFIGURE_ARGS && |
Hans-G?nter@22091 | 69 make && |
Hans-G?nter@22091 | 70 make install |
pankso@12480 | 71 } |