2021-12-11 19:29:04 +01:00
|
|
|
# Description: A system for managing library compile/link flags.
|
2023-08-04 17:48:03 +02:00
|
|
|
# URL: https://github.com/pkgconf/pkgconf/
|
2021-12-13 12:00:04 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2021-12-11 19:29:04 +01:00
|
|
|
|
|
|
|
name=pkgconf
|
2023-09-03 10:48:30 +02:00
|
|
|
version=2.0.3
|
2021-12-11 19:29:04 +01:00
|
|
|
release=1
|
2023-07-07 23:52:36 +02:00
|
|
|
source=(https://distfiles.ariadne.space/pkgconf/pkgconf-$version.tar.xz
|
2021-12-11 19:29:04 +01:00
|
|
|
i686-pc-linux-gnu.personality x86_64-pc-linux-gnu.personality)
|
|
|
|
|
|
|
|
build() {
|
2023-05-03 11:31:52 +02:00
|
|
|
meson setup build $name-$version \
|
2021-12-13 12:00:04 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode=nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2023-01-23 11:38:32 +01:00
|
|
|
-D tests=disabled
|
2023-05-03 11:31:52 +02:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-12-11 19:29:04 +01:00
|
|
|
|
2021-12-13 12:00:04 +01:00
|
|
|
install -Dt $PKG/usr/share/pkgconfig/personality.d -m644 \
|
|
|
|
i686-pc-linux-gnu.personality \
|
|
|
|
x86_64-pc-linux-gnu.personality
|
|
|
|
ln -s pkgconf $PKG/usr/bin/i686-pc-linux-gnu-pkg-config
|
|
|
|
ln -s pkgconf $PKG/usr/bin/x86_64-pc-linux-gnu-pkg-config
|
|
|
|
ln -s pkgconf $PKG/usr/bin/pkg-config
|
2021-12-11 19:29:04 +01:00
|
|
|
|
2021-12-13 12:00:04 +01:00
|
|
|
ln -s pkgconf.1 $PKG/usr/share/man/man1/pkg-config.1
|
2021-12-11 19:29:04 +01:00
|
|
|
|
2021-12-13 12:00:04 +01:00
|
|
|
rm -rf $PKG/usr/share/doc
|
2021-12-11 19:29:04 +01:00
|
|
|
}
|