4b97cd2fb4
```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 ```
53 lines
1.8 KiB
Bash
53 lines
1.8 KiB
Bash
# Template file for 'spice-gtk'
|
|
pkgname=spice-gtk
|
|
version=0.39
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)
|
|
-Dvapi=$(vopt_if vala enabled disabled) -Dsmartcard=disabled
|
|
-Dusbredir=enabled -Dpolkit=enabled -Dlz4=enabled -Dopus=enabled
|
|
-Dcelt051=disabled -Dusb-ids-path=/usr/share/hwdata/usb.ids
|
|
-Dpulse=disabled -Dgtk_doc=disabled"
|
|
hostmakedepends="pkg-config $(vopt_if vala vala) glib-devel
|
|
spice-protocol python3-six python3-parsing perl"
|
|
makedepends="acl-devel liblz4-devel pixman-devel opus-devel openssl-devel
|
|
libsasl-devel gtk+3-devel libjpeg-turbo-devel polkit-devel libsoup-devel
|
|
usbredir-devel spice-protocol json-glib-devel libglib-devel libva-devel
|
|
phodav-devel gstreamer1-devel gst-plugins-base1-devel vte3-devel"
|
|
depends="hwids"
|
|
short_desc="GTK+ SPICE widget"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://spice-space.org"
|
|
distfiles="https://spice-space.org/download/gtk/${pkgname}-${version}.tar.xz"
|
|
checksum=23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd
|
|
|
|
CFLAGS="-Wno-error -Wno-error=unused-but-set-variable"
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" -Dcoroutine=gthread";;
|
|
esac
|
|
|
|
spice-gtk-devel_package() {
|
|
depends="gtk+3-devel pixman-devel openssl-devel opus-devel
|
|
libva-devel libsasl-devel liblz4-devel usbredir-devel phodav-devel
|
|
json-glib-devel gstreamer1-devel gst-plugins-base1-devel
|
|
spice-protocol $(vopt_if gir libgirepository-devel)
|
|
${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|