void-packages/srcpkgs/Haru/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

34 lines
928 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
patch_args=-Np0
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
}
}