libgfshare: fix crossbuild
This commit is contained in:
parent
d64be411b3
commit
bb2922e9ca
1
srcpkgs/libgfshare-maketable
Symbolic link
1
srcpkgs/libgfshare-maketable
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
libgfshare
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'libgfshare'
|
# Template file for 'libgfshare'
|
||||||
pkgname=libgfshare
|
pkgname=libgfshare
|
||||||
version=2.0.0
|
version=2.0.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
short_desc="Shamir's secret-sharing method in the Galois Field GF(2**8)"
|
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"
|
distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
|
||||||
checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
|
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() {
|
post_install() {
|
||||||
vlicense COPYRIGHT
|
vlicense COPYRIGHT
|
||||||
}
|
}
|
||||||
@ -31,5 +41,14 @@ libgfshare-tools_package() {
|
|||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/gfcombine
|
vmove usr/bin/gfcombine
|
||||||
vmove usr/bin/gfsplit
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user