void-packages/srcpkgs/linphone-desktop/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

42 lines
1.8 KiB
Bash

# Template file for 'linphone-desktop'
pkgname=linphone-desktop
version=4.2.1
revision=2
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
build_style=cmake
configure_args="-DCMAKE_INSTALL_RPATH=OFF"
hostmakedepends="qt5-qmake qt5-host-tools qt5-declarative"
makedepends="bctoolbox-devel belcard-devel belle-sip-devel linphone-devel
mediastreamer-devel qt5-declarative-devel qt5-quickcontrols2-devel
qt5-svg-devel qt5-tools-devel"
depends="qt5>=5.9_1 qt5-quickcontrols qt5-quickcontrols2 qt5-graphicaleffects"
short_desc="Linphone qt desktop"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://www.linphone.org/"
distfiles="https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/${version}/linphone-desktop-${version}.tar.gz"
checksum=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
replaces="linphone-gui>=0"
CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
linphone-gui_package() {
short_desc+=" - (transitional dummy package)"
depends="linphone-desktop"
build_style=meta
}
# XXX: The cmake install does all kinds of stuff we don't want
do_install() {
vbin build/linphone
vinstall build/linphone.desktop 644 usr/share/applications/
vinstall assets/images/linphone_logo.svg 644 usr/share/icons/hicolor/scalable/apps/ linphone.svg
vinstall assets/linphonerc-factory 644 usr/share/linphone/
vinstall assets/assistant/create-app-sip-account.rc 644 usr/share/linphone/assistant
vinstall assets/assistant/use-app-sip-account.rc 644 usr/share/linphone/assistant
vinstall assets/assistant/use-other-sip-account.rc 644 usr/share/linphone/assistant
for s in 16x16 22x22 24x24 32x32 64x64 128x128 256x256; do
vinstall assets/icons/hicolor/${s}/apps/icon.png 644 usr/share/icons/hicolor/${s}/apps/
done
}