void-packages/srcpkgs/Haru/template
Đoàn Trần Công Danh 2510f84a7d Haru: fix cross build
2021-04-12 08:42:46 +07:00

33 lines
912 B
Bash

# Template file for 'Haru'
pkgname=Haru
version=2.3.0
revision=3
wrksrc="libharu-RELEASE_${version//./_}"
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="zlib-devel libpng-devel"
short_desc="Free, cross platform, open source library for generating PDF files"
maintainer="Florian Eich <flrn@nrmncr.net>"
license="Zlib"
homepage="http://libharu.org/"
distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz"
checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2
if [ "$CROSS_BUILD" ]; then
configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr"
configure_args+=" --with-png=${XBPS_CROSS_BASE}/usr"
fi
pre_configure() {
make -f build.mk
}
Haru-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/libhpdf.so
}
}