```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 ```
26 lines
945 B
Bash
26 lines
945 B
Bash
# Template file for 'sylpheed'
|
|
pkgname=sylpheed
|
|
version=3.7.0
|
|
revision=7
|
|
build_style=gnu-configure
|
|
configure_args="--disable-compface --disable-gtkspell --enable-ldap --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="automake libtool pkg-config flex gettext-devel gtk+-devel gpgme-devel glib-devel"
|
|
makedepends="libfl-devel zlib-devel openssl-devel gtk+-devel gpgme-devel libldap-devel"
|
|
short_desc="GTK+ Lightweight and user-friendly e-mail client"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license=" GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="http://sylpheed.sraoss.jp"
|
|
distfiles="http://sylpheed.sraoss.jp/sylpheed/v${version%.*}/$pkgname-$version.tar.bz2"
|
|
checksum=eb23e6bda2c02095dfb0130668cf7c75d1f256904e3a7337815b4da5cb72eb04
|
|
lib32disabled=yes
|
|
|
|
pre_configure() {
|
|
aclocal -I ac
|
|
libtoolize --force --copy
|
|
autoheader
|
|
automake --add-missing --foreign --copy
|
|
autoconf
|
|
}
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/include
|
|
}
|