1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/expat/build
David Oberhollenzer 525b36aa89 Cleanup deploy/devdeploy split
- Don't duplicate shared objects, use the ones from the deploy
   directory when building dependend packages
 - Add helper function for moving headers, static libraries
   and pkgconfig data to devdeploy directory

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-02-10 19:59:51 +01:00

35 lines
673 B
Plaintext

VERSION="R_2_2_5"
SRCDIR="libexpat-${VERSION}/expat"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/libexpat/libexpat/archive"
SHA256SUM="b3781742738611eaa737543ee94264dd511c52a3ba7e53111f7d705f6bff65a8"
DEPENDS="libbsd"
prepare() {
autoreconf --force --install --symlink
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
--without-xmlwf --with-libbsd
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
make DESTDIR="$DEPLOY" install-strip
rm ${DEPLOY}/lib/*.la
rm -r "$DEPLOY/share"
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
}