mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
kernel-libc-headers: misc tweaks.
This commit is contained in:
parent
cad5410245
commit
819bbdd0c9
1 changed files with 9 additions and 11 deletions
|
@ -12,25 +12,23 @@ checksum=ed4dfd9f56b7c82e9c71331bbf8d2ea01ddfddc1b6209bd3f3c8640aa24065cf
|
||||||
|
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
|
||||||
if [ -n "$IN_CHROOT" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
_arch="ARCH=x86"
|
i686|x86_64) _arch="x86";;
|
||||||
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
arm*) _arch="arm";;
|
||||||
_arch="ARCH=arm"
|
*) msg_error "$pkgver: unknown architecture.\n";;
|
||||||
else
|
esac
|
||||||
msg_error "$pkgver: unknown architecture.\n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make mrproper
|
make mrproper
|
||||||
make ${_arch} headers_check
|
make ARCH=${_arch} headers_check
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make ${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
make ARCH=${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
||||||
# Remove unused files.
|
# Remove unused files.
|
||||||
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
||||||
# Remove drm headers, use libdrm.
|
# Remove drm headers, use libdrm.
|
||||||
|
@ -41,6 +39,6 @@ kernel-libc-headers_package() {
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
noverifyrdeps=yes
|
noverifyrdeps=yes
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr
|
vmove all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue