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 ```
21 lines
823 B
Bash
21 lines
823 B
Bash
# Template file for 'guvcview'
|
|
pkgname=guvcview
|
|
version=2.0.6
|
|
revision=2
|
|
wrksrc="${pkgname}-src-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-debian-menu"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="eudev-libudev-devel gtk+3-devel SDL2-devel ffmpeg-devel libusb-devel
|
|
pulseaudio-devel v4l-utils-devel portaudio-devel gsl-devel"
|
|
depends="desktop-file-utils"
|
|
short_desc="Simple GTK interface for capturing and viewing video from UVC devices"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://guvcview.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-src-${version}.tar.gz"
|
|
checksum=95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85
|
|
|
|
post_extract() {
|
|
sed '31a#include <locale.h>' -i guvcview/guvcview.c
|
|
}
|