kernel-libc-headers: misc tweaks.
This commit is contained in:
parent
cad5410245
commit
819bbdd0c9
|
@ -12,25 +12,23 @@ checksum=ed4dfd9f56b7c82e9c71331bbf8d2ea01ddfddc1b6209bd3f3c8640aa24065cf
|
|||
|
||||
bootstrap=yes
|
||||
|
||||
if [ -n "$IN_CHROOT" ]; then
|
||||
if [ "$CHROOT_READY" ]; then
|
||||
hostmakedepends="perl"
|
||||
fi
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
_arch="ARCH=x86"
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||
_arch="ARCH=arm"
|
||||
else
|
||||
msg_error "$pkgver: unknown architecture.\n"
|
||||
fi
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686|x86_64) _arch="x86";;
|
||||
arm*) _arch="arm";;
|
||||
*) msg_error "$pkgver: unknown architecture.\n";;
|
||||
esac
|
||||
|
||||
do_build() {
|
||||
make mrproper
|
||||
make ${_arch} headers_check
|
||||
make ARCH=${_arch} headers_check
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make ${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
||||
make ARCH=${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
||||
# Remove unused files.
|
||||
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
||||
# Remove drm headers, use libdrm.
|
||||
|
@ -41,6 +39,6 @@ kernel-libc-headers_package() {
|
|||
nostrip=yes
|
||||
noverifyrdeps=yes
|
||||
pkg_install() {
|
||||
vmove usr
|
||||
vmove all
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue