mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
31 lines
669 B
Text
31 lines
669 B
Text
|
VERSION="0.29.2"
|
||
|
SRCDIR="pkg-config-$VERSION"
|
||
|
TARBALL="$SRCDIR.tar.gz"
|
||
|
URL="https://pkg-config.freedesktop.org/releases/"
|
||
|
SHA256SUM="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
|
||
|
|
||
|
prepare() {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
local SOURCE="$1"
|
||
|
local BUILD="$2"
|
||
|
|
||
|
$SOURCE/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"
|
||
|
}
|