From bb2922e9ca304bf2e3308b1058e55de9919011f4 Mon Sep 17 00:00:00 2001 From: lemmi Date: Mon, 9 Oct 2017 03:50:29 +0200 Subject: [PATCH] libgfshare: fix crossbuild --- srcpkgs/libgfshare-maketable | 1 + srcpkgs/libgfshare/template | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 120000 srcpkgs/libgfshare-maketable diff --git a/srcpkgs/libgfshare-maketable b/srcpkgs/libgfshare-maketable new file mode 120000 index 00000000000..aa3e61c7b48 --- /dev/null +++ b/srcpkgs/libgfshare-maketable @@ -0,0 +1 @@ +libgfshare \ No newline at end of file diff --git a/srcpkgs/libgfshare/template b/srcpkgs/libgfshare/template index d09332b4429..90952557b9b 100644 --- a/srcpkgs/libgfshare/template +++ b/srcpkgs/libgfshare/template @@ -1,7 +1,7 @@ # Template file for 'libgfshare' pkgname=libgfshare version=2.0.0 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="pkg-config" short_desc="Shamir's secret-sharing method in the Galois Field GF(2**8)" @@ -11,6 +11,16 @@ homepage="https://git.gitano.org.uk/libgfshare.git" distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2" checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" libgfshare-maketable" +fi + +pre_build() { + if [ "$CROSS_BUILD" ]; then + sed -i -e 's#\.\/gfshare_maketable#gfshare_maketable#' Makefile + fi +} + post_install() { vlicense COPYRIGHT } @@ -31,5 +41,14 @@ libgfshare-tools_package() { pkg_install() { vmove usr/bin/gfcombine vmove usr/bin/gfsplit + vmove usr/share/man/man1/gfcombine.1 + vmove usr/share/man/man1/gfsplit.1 + } +} + +libgfshare-maketable_package() { + short_desc+="tables for libgfshare" + pkg_install() { + vbin gfshare_maketable } }