2017-10-09 02:32:39 +02:00
|
|
|
# Template file for 'libgfshare'
|
|
|
|
pkgname=libgfshare
|
|
|
|
version=2.0.0
|
2017-10-09 03:50:29 +02:00
|
|
|
revision=3
|
2017-10-09 02:32:39 +02:00
|
|
|
build_style=gnu-configure
|
2017-10-09 02:39:52 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2017-10-09 02:32:39 +02:00
|
|
|
short_desc="Shamir's secret-sharing method in the Galois Field GF(2**8)"
|
|
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://git.gitano.org.uk/libgfshare.git"
|
|
|
|
distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
|
2017-10-09 02:39:52 +02:00
|
|
|
checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
|
2017-10-09 02:32:39 +02:00
|
|
|
|
2017-10-09 03:50:29 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" libgfshare-maketable"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -i -e 's#\.\/gfshare_maketable#gfshare_maketable#' Makefile
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-10-09 02:32:39 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense COPYRIGHT
|
|
|
|
}
|
|
|
|
|
|
|
|
libgfshare-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-09 02:39:52 +02:00
|
|
|
libgfshare-tools_package() {
|
|
|
|
short_desc+="gfsplit and gfcombine tools for multi-way secret-sharing"
|
2017-10-09 02:32:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gfcombine
|
|
|
|
vmove usr/bin/gfsplit
|
2017-10-09 03:50:29 +02:00
|
|
|
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
|
2017-10-09 02:32:39 +02:00
|
|
|
}
|
|
|
|
}
|