From 5d17b04f52b0be4c1277774f2ebb301745275924 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 21 Jan 2018 23:21:01 +0100 Subject: [PATCH] Add libtasn1 package Signed-off-by: David Oberhollenzer --- pkg/libtasn1/build | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 pkg/libtasn1/build diff --git a/pkg/libtasn1/build b/pkg/libtasn1/build new file mode 100755 index 0000000..c6c8dc0 --- /dev/null +++ b/pkg/libtasn1/build @@ -0,0 +1,33 @@ +VERSION="4.13" +SRCDIR="libtasn1-$VERSION" +TARBALL="libtasn1-$VERSION.tar.gz" +URL="https://ftp.gnu.org/gnu/libtasn1" +SHA256SUM="7e528e8c317ddd156230c4e31d082cd13e7ddeb7a54824be82632209550c8cca" + +prepare() { + return +} + +build() { + local SOURCE="$1" + local BUILD="$2" + + $SOURCE/configure --prefix="" --host="$TARGET" --disable-static + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + local DEVDEPLOY="$4" + + make DESTDIR="$DEPLOY" install-strip + + mv "$DEPLOY/include" "$DEVDEPLOY" + cp -r "$DEPLOY/lib" "$DEVDEPLOY" + rm -r "$DEPLOY/lib/pkgconfig" + rm -r "$DEPLOY/share" + rm ${DEPLOY}/lib/*.la +}