mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
29 lines
662 B
Plaintext
29 lines
662 B
Plaintext
name=pkgconfig
|
|
revision=1
|
|
from_source=pkgconfig
|
|
imagedeps="gcc base-devel"
|
|
|
|
|
|
build() {
|
|
${source_dir}/configure --prefix=${prefix}
|
|
make -j${parallelism}
|
|
}
|
|
|
|
package() {
|
|
|
|
make install DESTDIR="${dest_dir}"
|
|
mkdir -p ${dest_dir}${prefix}/share/pkgconfig/personality.d
|
|
|
|
cat > ${dest_dir}${prefix}/share/pkgconfig/personality.d/x86_64-astral.personality << EOF
|
|
Triplet: x86_64-astral
|
|
SysrootDir: ${sysroot_dir}
|
|
DefaultSearchPaths: ${sysroot_dir}/usr/lib/pkgconfig:${sysroot_dir}/usr/share/pkgconfig
|
|
SystemIncludePaths: ${sysroot_dir}/usr/include
|
|
SystemLibraryPaths: ${sysroot_dir}/usr/lib
|
|
EOF
|
|
|
|
ln -s pkgconf ${dest_dir}${prefix}/bin/x86_64-astral-pkg-config
|
|
|
|
}
|
|
|