7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```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 ```
34 lines
1,005 B
Bash
34 lines
1,005 B
Bash
# Template file for 'gupnp-igd'
|
|
pkgname=gupnp-igd
|
|
version=0.2.5
|
|
revision=3
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-python --disable-static $(vopt_enable gir introspection)"
|
|
hostmakedepends="automake pkg-config glib-devel libtool gobject-introspection"
|
|
makedepends="libglib-devel libxml2-devel libsoup-devel gssdp-devel gupnp-devel"
|
|
short_desc="Library to handle UPnP IGD port mapping"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://gupnp.org"
|
|
distfiles="${GNOME_SITE}/${pkgname}/0.2/${pkgname}-${version}.tar.xz"
|
|
checksum=8b4a1aa38bacbcac2c1755153147ead7ee9af7d4d1f544b6577cfc35e10e3b20
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
gupnp-igd-devel_package() {
|
|
depends="gupnp-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|