44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'calc'
|
|
pkgname=calc
|
|
version=2.14.3.5
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="ARCH_CFLAGS="
|
|
make_install_args="T=$""{DESTDIR}"
|
|
makedepends="readline-devel"
|
|
short_desc="C-style arbitrary precision calculator"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="LGPL-2.1-only"
|
|
homepage="http://www.isthe.com/chongo/tech/comp/calc/index.html"
|
|
distfiles="http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
|
|
checksum=e1e5ece8d0dfb093b956bf4ca368c2d7a853440cadfbed6cf99fc9ad60cac149
|
|
disable_parallel_build=yes
|
|
|
|
post_extract() {
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) patch -Np0 < ${FILESDIR}/musl.patch ;;
|
|
esac
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} ${make_build_args} ${make_build_target} \
|
|
CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
|
|
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" LDFLAGS="$LDFLAGS"
|
|
}
|
|
|
|
libcalc_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
libcalc-devel_package() {
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|