```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
864 B
Bash
26 lines
864 B
Bash
# Template file for 'bctoolbox'
|
|
pkgname=bctoolbox
|
|
version=4.4.17
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_TESTS=ON -DENABLE_TESTS_COMPONENT=OFF
|
|
-DCMAKE_MODULE_PATH=/usr/lib/cmake"
|
|
makedepends="bcunit-devel mbedtls-devel"
|
|
short_desc="Library to create and run audio and video streams"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
|
|
distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
|
|
checksum=1364d5f42b5514546b9c6654c227804ff92cf9cf13fdc7cb6ca666e3bb5a7987
|
|
|
|
bctoolbox-devel_package() {
|
|
depends="bctoolbox-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/bctoolbox/cmake
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|