103 lines
1.8 KiB
Bash
103 lines
1.8 KiB
Bash
# Template file for 'botan'
|
|
pkgname=botan
|
|
version=2.19.1
|
|
revision=1
|
|
wrksrc="${pkgname^}-${version}"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="doxygen python3"
|
|
makedepends="openssl-devel bzip2-devel liblzma-devel sqlite-devel zlib-devel"
|
|
short_desc="Crypto library written in C++"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://botan.randombit.net/"
|
|
distfiles="https://botan.randombit.net/releases/Botan-${version}.tar.xz"
|
|
checksum=e26e00cfefda64082afdd540d3c537924f645d6a674afed2cd171005deff5560
|
|
python_version=3
|
|
|
|
LDFLAGS="-pthread"
|
|
|
|
do_configure() {
|
|
local _args _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"
|
|
_args+=" --cc=gcc"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*)
|
|
_cpu="i686"
|
|
;;
|
|
x86_64*)
|
|
_cpu="x86_64"
|
|
;;
|
|
armv5*)
|
|
_cpu="arm"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
armv6*)
|
|
_cpu="arm"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
armv7*)
|
|
_cpu="armv7-a"
|
|
_args+=" --disable-modules=simd"
|
|
;;
|
|
aarch64*)
|
|
_cpu="armv8-a"
|
|
;;
|
|
mips*)
|
|
_cpu="mips32"
|
|
;;
|
|
ppc64le*)
|
|
_cpu="ppc64le"
|
|
;;
|
|
ppc64*)
|
|
_cpu="ppc64"
|
|
;;
|
|
ppc*)
|
|
_cpu="ppc"
|
|
;;
|
|
*)
|
|
_cpu="${XBPS_TARGET_MACHINE%-musl}"
|
|
;;
|
|
esac
|
|
|
|
python3 configure.py \
|
|
--distribution-info="Void Linux botan-${version}_${revision}" \
|
|
--cpu=${_cpu} \
|
|
${_args}
|
|
}
|
|
|
|
do_check() {
|
|
make check
|
|
}
|
|
|
|
post_install() {
|
|
vlicense license.txt
|
|
}
|
|
|
|
botan-doc_package() {
|
|
short_desc+=" - documentation"
|
|
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
|
|
}
|
|
}
|