mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
23 lines
564 B
Plaintext
23 lines
564 B
Plaintext
name=mlibc-headers
|
|
from_source=mlibc
|
|
revision=2
|
|
imagedeps="ninja-build meson build-essential rsync"
|
|
builddeps="linux-headers"
|
|
|
|
configure() {
|
|
meson setup --cross-file "${base_dir}/util/crossfile" --prefix="${prefix}" -Dheaders_only=true "${source_dir}" -Dposix_option=enabled -Dlinux_option=enabled -Dglibc_option=enabled -Dbsd_option=enabled
|
|
}
|
|
|
|
build() {
|
|
ninja
|
|
mkdir linux
|
|
cp -rp ${base_dir}/sources/linux/* linux
|
|
}
|
|
|
|
package() {
|
|
pushd linux
|
|
make headers_install ARCH=x86_64 INSTALL_HDR_PATH=${dest_dir}/${prefix}/
|
|
popd
|
|
DESTDIR=${dest_dir} ninja install
|
|
}
|