1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-17 00:47:10 +01:00
build/pkg/tc-pkg-config/build
David Oberhollenzer a1d055c8e0 Add dummy package descriptions for toolchain packages
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-03 17:47:02 +01:00

40 lines
No EOL
931 B
Text
Executable file

VERSION="0.29.2"
SRCDIR="pkg-config-$VERSION"
TARBALL="$SRCDIR.tar.gz"
URL="https://pkg-config.freedesktop.org/releases/"
SHA256SUM="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
DEPENDS="tc-pkgtool"
prepare() {
return
}
build() {
$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
make -j $NUMJOBS
}
deploy() {
make install
ln -s pkg-config "$TCDIR/bin/$TARGET-pkg-config"
touch "$2/$PKGNAME.files"
cat > "$2/$PKGNAME.desc" <<_EOF
name $PKGNAME
_EOF
}
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"
}