From 67f678064266b090017e6fc45db713bf806228ba Mon Sep 17 00:00:00 2001 From: jake-87 Date: Mon, 10 Jan 2022 16:30:54 +1100 Subject: [PATCH] New package: kalker-1.1.0 --- srcpkgs/kalker/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/kalker/template diff --git a/srcpkgs/kalker/template b/srcpkgs/kalker/template new file mode 100644 index 000000000000..ebe08b5ab170 --- /dev/null +++ b/srcpkgs/kalker/template @@ -0,0 +1,32 @@ +# Template file for 'kalker' +pkgname=kalker +version=1.1.0 +revision=1 +# Kalker fails to build on any other platform due to gmp +# It also will not cross compile from glibc to musl, but if run on a native OS, works fine +archs="x86_64 x86_64-musl" +build_style=cargo +make_install_args="--path cli" +hostmakedepends="rust cargo gcc m4 diffutils make" +short_desc="Kalker is a calculator with functions, derivation, and integration" +maintainer="jake-87 " +license="MIT" +homepage="https://github.com/PaddiM8/kalker" +distfiles="https://github.com/PaddiM8/kalker/archive/v${version}.tar.gz" +checksum=4332563b18e1c2c8c54871e46f40e55791d3f86612d4651c69b690827051a484 + +# Needed because default adds "--path ." to ${make_install_args} +# whereas we need "--path cli" + +do_install() { + : ${make_cmd:=cargo} + ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ + --locked ${configure_args} ${make_install_args} + + rm -f "${DESTDIR}"/usr/.crates.toml + rm -f "${DESTDIR}"/usr/.crates2.json +} + +post_install() { + vlicense LICENSE +}