mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
klibc: update to 2.0.12.
This commit is contained in:
parent
4d56e08fee
commit
3458e7f709
2 changed files with 38 additions and 2 deletions
34
srcpkgs/klibc/files/initramfs-tools-hooks
Executable file
34
srcpkgs/klibc/files/initramfs-tools-hooks
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
prereqs()
|
||||||
|
{
|
||||||
|
if [ "${BUSYBOX}" = "n" ] || [ ! -f "${BUSYBOX_EXECUTABLE}" ]; then
|
||||||
|
echo ''
|
||||||
|
else
|
||||||
|
# Ensure busybox installs all its commands before
|
||||||
|
# checking what we should provide
|
||||||
|
echo zz-busybox
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
prereqs)
|
||||||
|
prereqs
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
for src in /usr/lib/klibc/bin/*; do
|
||||||
|
command="${src##*/}"
|
||||||
|
case "$src" in
|
||||||
|
gzip | kinit | zcat)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Don't install commands that already exist in /bin or /sbin
|
||||||
|
if ! [ -e "${DESTDIR}/sbin/$command" ]; then
|
||||||
|
cp -pnL "$src" "${DESTDIR}/bin"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
cp -pL /lib/klibc-*.so "${DESTDIR}/lib"
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'klibc'
|
# Template file for 'klibc'
|
||||||
pkgname=klibc
|
pkgname=klibc
|
||||||
version=2.0.11
|
version=2.0.12
|
||||||
revision=1
|
revision=1
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
makedepends="kernel-libc-headers"
|
makedepends="kernel-libc-headers"
|
||||||
|
@ -9,7 +9,7 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="https://git.kernel.org/pub/scm/libs/klibc/klibc.git/"
|
homepage="https://git.kernel.org/pub/scm/libs/klibc/klibc.git/"
|
||||||
distfiles="https://git.kernel.org/pub/scm/libs/klibc/klibc.git/snapshot/klibc-${version}.tar.gz"
|
distfiles="https://git.kernel.org/pub/scm/libs/klibc/klibc.git/snapshot/klibc-${version}.tar.gz"
|
||||||
checksum=bb9c40fb9b20335fbdc44904d7c579d43e39cb0b59252e1a56ce67194fb38541
|
checksum=01cc9dc32453b664c998d811fb67be96f842740a3fedfaf746bac2bd394021cd
|
||||||
|
|
||||||
_make() {
|
_make() {
|
||||||
local _arch _mkflags=
|
local _arch _mkflags=
|
||||||
|
@ -105,6 +105,8 @@ do_install() {
|
||||||
else
|
else
|
||||||
vbin klcc/${XBPS_TRIPLET/unknown-/}-klcc
|
vbin klcc/${XBPS_TRIPLET/unknown-/}-klcc
|
||||||
fi
|
fi
|
||||||
|
vinstall ${FILESDIR}/initramfs-tools-hooks 755 \
|
||||||
|
usr/share/initramfs-tools/hooks klibc
|
||||||
}
|
}
|
||||||
|
|
||||||
klibc-devel_package() {
|
klibc-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue