From 45b9ddce1751bc8a2e80a1980f9944b375735b61 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 22 Jan 2018 17:07:04 +0100 Subject: [PATCH] Add expat package Signed-off-by: David Oberhollenzer --- pkg/expat/build | 35 +++++++++++++++++++++++++++++++++++ pkg/expat/depends | 1 + 2 files changed, 36 insertions(+) create mode 100644 pkg/expat/build create mode 100644 pkg/expat/depends diff --git a/pkg/expat/build b/pkg/expat/build new file mode 100644 index 0000000..1e04157 --- /dev/null +++ b/pkg/expat/build @@ -0,0 +1,35 @@ +VERSION="R_2_2_5" +SRCDIR="libexpat-${VERSION}/expat" +TARBALL="${VERSION}.tar.gz" +URL="https://github.com/libexpat/libexpat/archive" +SHA256SUM="b3781742738611eaa737543ee94264dd511c52a3ba7e53111f7d705f6bff65a8" + +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 + + mv "$DEPLOY/include" "$DEVDEPLOY" + rm -r "$DEPLOY/share" + cp -r "$DEPLOY/lib" "$DEVDEPLOY" + rm -r "$DEPLOY/lib/pkgconfig" +} diff --git a/pkg/expat/depends b/pkg/expat/depends new file mode 100644 index 0000000..de0aa90 --- /dev/null +++ b/pkg/expat/depends @@ -0,0 +1 @@ +libbsd