void-packages/srcpkgs/qalculate/template

42 lines
1.2 KiB
Bash

# Template file for 'qalculate'
pkgname=qalculate
version=3.8.0
revision=1
wrksrc="lib${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="intltool pkg-config doxygen"
makedepends="libxml2-devel cln-devel readline-devel libcurl-devel icu-devel
mpfr-devel"
short_desc="Multi-purpose desktop calculator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://qalculate.github.io"
distfiles="https://github.com/Qalculate/libqalculate/releases/download/v${version}/libqalculate-${version}.tar.gz"
checksum=d8fcf445677ced76c13db5bd31af96f069f83041a264ac4df0d065af47b2e1ae
libqalculate-data_package() {
archs=noarch
short_desc+=" - data files"
pkg_install() {
vmove usr/share/qalculate
}
}
libqalculate_package() {
short_desc+=" - library files"
depends="libqalculate-data>=${version}_${revision}"
pkg_install() {
vmove usr/lib/libqalculate.so.*
}
}
libqalculate-devel_package() {
short_desc+=" - development files"
depends="libqalculate>=${version}_${revision} libxml2-devel cln-devel gmp-devel mpfr-devel"
pkg_install() {
vmove usr/lib/*.so
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
vmove usr/include
vmove usr/share/doc
}
}