38 lines
967 B
Bash
38 lines
967 B
Bash
# Template file for 'cln'
|
|
pkgname=cln
|
|
version=1.3.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="gmp-devel"
|
|
short_desc="Class library (C++) for numbers"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.ginac.de/CLN/"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.bz2"
|
|
checksum=f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*|aarch64*) CPPFLAGS="-DNO_ASM";;
|
|
esac
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
pre_build() {
|
|
# During cross build, script builds intparam.h
|
|
# with a line starting with:
|
|
# #error char size does not fit in intptr
|
|
# even though the sizes are correct.
|
|
vsed -e '/#error/d' -i include/cln/intparam.h
|
|
}
|
|
fi
|
|
|
|
cln-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/libcln.so
|
|
vmove usr/lib/libcln.a
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|