void-packages/srcpkgs/util-linux-common/template

143 lines
4.3 KiB
Bash

# Template file for 'util-linux-common'
# Keep this package sync with util-linux
pkgname=util-linux-common
version=2.37.1
revision=1
wrksrc="util-linux-$version"
build_style=gnu-configure
configure_args="--exec-prefix=\${prefix} --enable-libuuid --disable-makeinstall-chown
--enable-libblkid --enable-fsck --disable-rpath --enable-fs-paths-extra=/usr/sbin:/usr/bin
--enable-vipw --enable-newgrp --enable-chfn-chsh --with-systemdsystemunitdir=no
--without-udev --without-python --enable-write"
hostmakedepends="gettext pkg-config"
makedepends="libcap-ng-devel pam-devel readline-devel zlib-devel"
checkdepends="xz tar iproute2 socat procps-ng bc"
short_desc="Miscellaneous linux utilities - common files"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.kernel.org/pub/linux/utils/util-linux/"
distfiles="${KERNEL_SITE}/utils/util-linux/v${version%.${version#*.*.}}/util-linux-${version}.tar.xz"
checksum=8e4bd42053b726cf86eb4d13a73bc1d9225a2c2e1a2e0d2a891f1020f83e6b76
post_extract() {
# hung inside xbps-src
rm -f tests/ts/lsns/ioctl_ns
if [ "$XBPS_TARGET_LIBC" = musl ]; then
# Known broken
rm -f tests/ts/col/multibyte
fi
}
do_install() {
make usrsbin_execdir=/usr/bin DESTDIR=${DESTDIR} install
# Those files will be provided by util-linux
rm -rf "$DESTDIR/usr/bin"
rm -rf "$DESTDIR/usr/share/man/man1"
rm -rf "$DESTDIR/usr/share/man/man5"
rm -rf "$DESTDIR/usr/share/man/man8"
rm -rf "$DESTDIR/usr/share/bash-completion"
rm -rf "$DESTDIR/usr/share/doc/"
# Some libraries have i18n text
# rm -rf "$DESTDIR/usr/share/locale"
}
util-linux-libs_package() {
short_desc+=" - meta libraries"
build_style=meta
depends="libfdisk-${version}_${revision} libblkid-${version}_${revision}
libmount-${version}_${revision} libsmartcols-${version}_${revision}
libuuid-${version}_${revision}"
}
libfdisk_package() {
short_desc="Library for fdisk(8)"
depends="${sourcepkg}>=${version}_1<=${version}_9999"
pkg_install() {
vmove "usr/lib/libfdisk.so.*"
}
}
libfdisk-devel_package() {
depends="libblkid-devel>=${version}_1<=${version}_9999
libfdisk>=${version}_1<=${version}_9999"
short_desc="Library for fdisk(8) - development files"
pkg_install() {
vmove usr/lib/libfdisk.a
vmove usr/lib/libfdisk.so
vmove "usr/lib/pkgconfig/*fdisk*"
vmove usr/include/libfdisk
}
}
libmount_package() {
short_desc="Library for mount(8)"
depends="${sourcepkg}>=${version}_1<=${version}_9999"
pkg_install() {
vmove "usr/lib/libmount.so.*"
}
}
libmount-devel_package() {
depends="libblkid-devel>=${version}_1<=${version}_9999
libmount>=${version}_1<=${version}_9999"
short_desc="Library for mount(8) - development files"
pkg_install() {
vmove usr/lib/libmount.a
vmove usr/lib/libmount.so
vmove "usr/lib/pkgconfig/*mount*"
vmove usr/include/libmount
}
}
libblkid_package() {
short_desc="Library to handle device identification"
depends="${sourcepkg}>=${version}_1<=${version}_9999"
pkg_install() {
vmove "usr/lib/libblkid.so.*"
}
}
libblkid-devel_package() {
depends="zlib-devel libuuid-devel>=${version}_1<=${version}_9999
libblkid>=${version}_1<=${version}_9999"
short_desc="Library to handle device identification - development files"
pkg_install() {
vmove usr/include/blkid
vmove usr/lib/libblkid.a
vmove usr/lib/libblkid.so
vmove usr/lib/pkgconfig/blkid.pc
vmove usr/share/man/man3/libblkid.3
}
}
libuuid_package() {
short_desc="UUID library"
depends="${sourcepkg}>=${version}_1<=${version}_9999"
pkg_install() {
vmove "usr/lib/libuuid.so.*"
}
}
libuuid-devel_package() {
depends="libuuid>=${version}_${revision}<=${version}_9999"
short_desc="UUID library development files"
pkg_install() {
vmove usr/lib/libuuid.a
vmove usr/lib/libuuid.so
vmove usr/lib/pkgconfig
vmove usr/include/uuid
vmove usr/share/man/man3/uuid*
}
}
libsmartcols-devel_package() {
depends="libsmartcols>=${version}_${revision}<=${version}_9999"
short_desc="Table or Tree library from util-linux - development files"
pkg_install() {
vmove usr/lib/libsmartcols.a
vmove usr/lib/libsmartcols.so
vmove usr/include/libsmartcols
vmove usr/lib/pkgconfig/smartcols*
}
}
libsmartcols_package() {
short_desc="Table or Tree library from util-linux"
depends="${sourcepkg}>=${version}_1<=${version}_9999"
pkg_install() {
vmove usr/lib/libsmartcols.so.*
}
}