core/pkgconf/Pkgfile

33 lines
980 B
Plaintext
Raw Normal View History

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/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2021-12-11 19:29:04 +01:00
name=pkgconf
2023-11-23 13:34:02 +01:00
version=2.1.0
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-08-21 21:49:13 +02:00
meson setup build $name-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D tests=disabled
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2021-12-11 19:29:04 +01:00
2023-08-21 21:49:13 +02: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
2023-08-21 21:49:13 +02:00
ln -s pkgconf.1 $PKG/usr/share/man/man1/pkg-config.1
2021-12-11 19:29:04 +01:00
2023-08-21 21:49:13 +02:00
rm -rf $PKG/usr/share/doc
2021-12-11 19:29:04 +01:00
}