861ac185a6
```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
803 B
Bash
26 lines
803 B
Bash
# Template file for 'libopenglrecorder'
|
|
pkgname=libopenglrecorder
|
|
version=0.1.0
|
|
revision=3
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libvpx-devel libogg-devel libjpeg-turbo-devel libvorbis-devel pulseaudio-devel"
|
|
short_desc="Library allowing audio and OpenGL recording"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="3-clause-BSD"
|
|
homepage="https://github.com/Benau/libopenglrecorder"
|
|
distfiles="https://github.com/Benau/libopenglrecorder/archive/v${version}.tar.gz"
|
|
checksum=a90a99c23f868636f77003a8dc6ffe6c3699fc2759c47df5dbd44ff8b42d2e4f
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libopenglrecorder-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|