```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
33 lines
912 B
Bash
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
|
|
}
|
|
}
|