diff --git a/srcpkgs/libgfshare-maketable b/srcpkgs/libgfshare-maketable new file mode 120000 index 0000000000..aa3e61c7b4 --- /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 d09332b442..90952557b9 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 } }