861ac185a6
```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 ```
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'libwmf'
|
|
pkgname=libwmf
|
|
version=0.2.8.4
|
|
revision=18
|
|
build_style=gnu-configure
|
|
configure_args="--with-freetype=${XBPS_CROSS_BASE}/usr
|
|
--with-gsfontdir=/usr/share/fonts/Type1
|
|
--with-fontdir=/usr/share/fonts/Type1 --disable-static
|
|
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS"
|
|
hostmakedepends="automake libtool pkg-config gsfonts"
|
|
makedepends="zlib-devel freetype-devel libjpeg-turbo-devel libpng-devel
|
|
expat-devel glib-devel gtk+-devel gd-devel gsfonts"
|
|
depends="gsfonts"
|
|
short_desc="Library for reading and converting WMF (Windows Meta Files)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://wvware.sourceforge.net/libwmf.html"
|
|
license="LGPL-2.1"
|
|
distfiles="${SOURCEFORGE_SITE}/wvware/${pkgname}-${version}.tar.gz"
|
|
checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/share/fonts
|
|
}
|
|
|
|
libwmf-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/doc
|
|
vmove usr/bin/libwmf-config
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|