```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 ```
35 lines
961 B
Bash
35 lines
961 B
Bash
# Template file for 'libetpan'
|
|
pkgname=libetpan
|
|
version=1.9.3
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--enable-ipv6 --with-curl --with-expat --with-openssl
|
|
--with-zlib --with-sasl"
|
|
hostmakedepends="libtool automake"
|
|
makedepends="db-devel expat-devel openssl-devel zlib-devel
|
|
libsasl-devel libcurl-devel"
|
|
short_desc="Mail Framework library for C language"
|
|
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://www.etpan.org/libetpan.html"
|
|
distfiles="https://github.com/dinhviethoa/libetpan/archive/${version}.tar.gz"
|
|
checksum=591f97d5102f600e668502fe1dd5a341e910a840d8ea62e689a3a79d8bfbac87
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
}
|
|
|
|
libetpan-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|