2017-12-09 21:51:48 +01:00
|
|
|
VERSION="0.29.2"
|
|
|
|
SRCDIR="pkg-config-$VERSION"
|
|
|
|
TARBALL="$SRCDIR.tar.gz"
|
|
|
|
URL="https://pkg-config.freedesktop.org/releases/"
|
|
|
|
SHA256SUM="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
|
2019-01-30 14:18:25 +01:00
|
|
|
DEPENDS="tc-pkgtool"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
|
|
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
|
|
|
--with-sysroot="$TCDIR/$TARGET" \
|
|
|
|
--with-pc-path="$TCDIR/$TARGET/lib/pkgconfig" \
|
|
|
|
--with-system-include-path="/include" \
|
|
|
|
--with-system-library-path="/lib" \
|
|
|
|
--with-internal-glib
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
make install
|
|
|
|
|
|
|
|
ln -s pkg-config "$TCDIR/bin/$TARGET-pkg-config"
|
2019-02-08 00:24:54 +01:00
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
touch "$PKGDEPLOYDIR/$PKGNAME.files"
|
2019-03-09 14:22:55 +01:00
|
|
|
touch "$PKGDEPLOYDIR/$PKGNAME.desc"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">pkg-config-[0-9.]*tar.gz<" | \
|
|
|
|
sed 's/>pkg-config-//g' | sed 's/.tar.gz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|