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 ```
36 lines
936 B
Bash
36 lines
936 B
Bash
# Template file for 'libabw'
|
|
pkgname=libabw
|
|
version=0.1.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="Library that parses the file format of AbiWord documents"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="MPL"
|
|
homepage="https://wiki.documentfoundation.org/DLP/Libraries/libabw"
|
|
distfiles="http://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
makedepends="librevenge-devel boost-devel libxml2-devel"
|
|
hostmakedepends="automake libtool pkg-config perl gperf"
|
|
checksum=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
|
|
|
|
CXXFLAGS="-Wno-deprecated-copy"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
libabw-devel_package() {
|
|
depends="libabw>=${version}_${revision} $makedepends"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libabw-tools_package() {
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|