286cd6d87a
Thanks to the input of upstream Jack Lloyd all hacks needed for previous versions could now be removed. The license is actually 2-clause BSD.
92 lines
1.8 KiB
Bash
92 lines
1.8 KiB
Bash
# Template file for 'botan'
|
|
pkgname=botan
|
|
version=2.4.0
|
|
revision=3
|
|
wrksrc="${pkgname^}-${version}"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="doxygen epstopdf python"
|
|
makedepends="libressl-devel bzip2-devel liblzma-devel sqlite-devel zlib-devel"
|
|
short_desc="Crypto library written in C++"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="2-clause-BSD"
|
|
homepage="http://botan.randombit.net/"
|
|
distfiles="http://botan.randombit.net/releases/Botan-${version}.tgz"
|
|
checksum=ed9464e2a5cfee4cd3d9bd7a8f80673b45c8a0718db2181a73f5465a606608a5
|
|
|
|
LDFLAGS="-pthread"
|
|
|
|
do_configure() {
|
|
local _args _arch _cpu
|
|
|
|
_args="--prefix=/usr"
|
|
_args+=" --os=linux"
|
|
_args+=" --with-doxygen"
|
|
_args+=" --with-openssl"
|
|
_args+=" --with-bzip2"
|
|
_args+=" --with-lzma"
|
|
_args+=" --with-zlib"
|
|
_args+=" --with-sqlite3"
|
|
_args+=" --enable-shared"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*)
|
|
_cpu="i686"
|
|
_arch="x86"
|
|
;;
|
|
x86_64*)
|
|
_cpu="x86_64"
|
|
_arch="x86"
|
|
;;
|
|
armv5*)
|
|
_cpu="armv5"
|
|
_arch="armv5te"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
armv6*)
|
|
_cpu="armv6"
|
|
_arch="armv6"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
armv7*)
|
|
_cpu="armv7-a"
|
|
_arch="armv7"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
aarch64*)
|
|
_cpu="armv8-a"
|
|
_arch="arm64"
|
|
;;
|
|
mips*)
|
|
_cpu="mips32"
|
|
_arch="mips"
|
|
;;
|
|
esac
|
|
|
|
python configure.py \
|
|
--distribution-info="Void Linux botan-${version}_${revision}" \
|
|
--cc-abi-flags="-arch ${_arch} -stdlib=libc++" \
|
|
--cpu=${_cpu} \
|
|
${_args}
|
|
}
|
|
post_install() {
|
|
vlicense license.txt
|
|
}
|
|
|
|
botan-doc_package() {
|
|
short_desc+=" - documentation"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|
|
|
|
botan-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|