```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 ```
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
# Template file for 'vde2'
|
|
pkgname=vde2
|
|
version=2.3.2
|
|
revision=23
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-experimental
|
|
--disable-python --enable-kernel-switch"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="libpcap-devel openssl-devel"
|
|
conf_files="
|
|
/etc/vde2/vdecmd
|
|
/etc/vde2/libvdemgmt/asyncrecv.rc
|
|
/etc/vde2/libvdemgmt/closemachine.rc
|
|
/etc/vde2/libvdemgmt/openmachine.rc
|
|
/etc/vde2/libvdemgmt/sendcmd.rc"
|
|
short_desc="Virtual Distributed Ethernet"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2, LGPL-2.1, BSD"
|
|
homepage="http://sourceforge.net/projects/vde/"
|
|
distfiles="${SOURCEFORGE_SITE}/vde/vde2-$version.tar.bz2"
|
|
checksum=cbea9b7e03097f87a6b5e98b07890d2275848f1fe4b9fcda77b8994148bc9542
|
|
|
|
lib32disabled=yes
|
|
disable_parallel_build=yes
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING.slirpvde
|
|
}
|
|
|
|
libvde2_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
vde2-devel_package() {
|
|
depends="libvde2-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|