765e304c4b
```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 ```
62 lines
2.3 KiB
Bash
62 lines
2.3 KiB
Bash
# Template file for 'mumble'
|
|
pkgname=mumble
|
|
version=1.3.4
|
|
revision=6
|
|
build_style=qmake
|
|
configure_args="CONFIG+=bundled-celt CONFIG+=no-bundled-opus CONFIG+=no-update
|
|
CONFIG+=no-bundled-speex CONFIG+=no-g15 CONFIG+=no-xevie CONFIG+=pulseaudio
|
|
$(vopt_if jack CONFIG+=jackaudio) CONFIG+=no-embed-qt-translations
|
|
CONFIG+=no-oss $(vopt_if portaudio CONFIG+=portaudio)
|
|
DEFINES+=PLUGIN_PATH=/usr/lib/mumble"
|
|
hostmakedepends="Ice pkg-config protobuf qt5-host-tools qt5-qmake python3 which"
|
|
makedepends="Ice-devel MesaLib-devel avahi-compat-libs-devel boost-devel
|
|
libcap-devel openssl-devel libsndfile-devel opus-devel protobuf-devel
|
|
pulseaudio-devel $(vopt_if jack jack-devel) qt5-devel qt5-svg-devel
|
|
speech-dispatcher-devel speex-devel $(vopt_if portaudio portaudio-devel)"
|
|
depends="desktop-file-utils qt5-plugin-sqlite"
|
|
short_desc="Open source, low-latency, high quality voice chat for gaming"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://mumble.sourceforge.net/"
|
|
distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
|
|
|
|
build_options="jack portaudio"
|
|
build_options_default="jack portaudio"
|
|
|
|
do_install() {
|
|
vlicense LICENSE
|
|
vmkdir usr/lib/mumble
|
|
vmkdir usr/share/applications
|
|
vmkdir usr/share/icons/hicolor/scalable/apps
|
|
|
|
vbin ${wrksrc}/release/murmurd
|
|
vbin ${wrksrc}/scripts/murmur-user-wrapper
|
|
vbin ${wrksrc}/scripts/mumble-overlay
|
|
vman ${wrksrc}/man/murmurd.1
|
|
vman ${wrksrc}/man/murmur-user-wrapper.1
|
|
|
|
vbin ${wrksrc}/release/mumble
|
|
vman ${wrksrc}/man/mumble.1
|
|
cp ${wrksrc}/release/*.so* ${DESTDIR}/usr/lib/mumble
|
|
cp ${wrksrc}/release/plugins/* ${DESTDIR}/usr/lib/mumble
|
|
|
|
cp ${wrksrc}/scripts/mumble.desktop ${DESTDIR}/usr/share/applications
|
|
cp ${wrksrc}/icons/mumble.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
|
|
|
|
vsconf scripts/murmur.ini
|
|
vsconf scripts/murmur.ini.system
|
|
}
|
|
|
|
murmur_package() {
|
|
depends="mumble-${version}_${revision}"
|
|
short_desc+=" - The murmur server (for mumble)"
|
|
pkg_install() {
|
|
vmove usr/bin/murmurd
|
|
vmove usr/bin/murmur-user-wrapper
|
|
vmove usr/share/man/man1/murmur-user-wrapper.1
|
|
vmove usr/share/man/man1/murmurd.1
|
|
vmove usr/share/examples/mumble/murmur.ini
|
|
vmove usr/share/examples/mumble/murmur.ini.system
|
|
}
|
|
}
|