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 ```
37 lines
997 B
Bash
37 lines
997 B
Bash
# Template file for 'libfreehand'
|
|
pkgname=libfreehand
|
|
version=0.1.2
|
|
revision=3
|
|
build_style=gnu-configure
|
|
hostmakedepends="doxygen gperf perl pkg-config"
|
|
makedepends="icu-devel lcms2-devel librevenge-devel"
|
|
short_desc="Parser for Aldus/Macromedia/Adobe FreeHand documents"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MPL-2.0"
|
|
homepage="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
|
|
distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
|
|
|
|
CXXFLAGS="-Wno-deprecated-copy"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
libfreehand-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|
|
|
|
libfreehand-doc_package() {
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|