Merge pull request #7984 from lemmi/gfshare

libgfshare: fix crossbuild
This commit is contained in:
Toyam Cox 2017-10-08 21:56:29 -04:00 committed by GitHub
commit 56d398cfb1
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1 @@
libgfshare

View File

@ -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
}
}