mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 11:14:37 +08:00
52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
# contributor Fabien <hcoohb@gmailcom>
|
|
|
|
pkgname=yate
|
|
pkgver=5.4.2
|
|
subver=1
|
|
pkgrel=1
|
|
pkgdesc="Next-generation telephony engine, qt4 client for VoIP"
|
|
arch=('x86_64')
|
|
url="http://yate.null.ro"
|
|
license=('GPL2')
|
|
depends=('qt' 'speex' 'gsm' 'postgresql-libs' 'libmysqlclient' 'alsa-lib')
|
|
makedepends=('pkg-config' 'desktop-file-utils')
|
|
categories=('communication')
|
|
options=(!makeflags)
|
|
source=( #"http://yate.null.ro/tarballs/yate5/${pkgname}-${pkgver}-1.tar.gz"
|
|
"http://voip.null.ro/tarballs/yate5/${pkgname}-${pkgver}-${subver}.tar.gz"
|
|
"yate.service"
|
|
"yate.conf.d")
|
|
sha256sums=('f62453e2d743e99733685acbd3cd953d8c07d1f3e21ab26539bbb01b1ff8fc21'
|
|
'224d8f15275717d078342c4a5d4b33c6d64dbf9772538656b590ef67a464dfec'
|
|
'1b88b8e3573a68fb5f6673b1922318a4fa51c722def21dd27b4ef8ca002812e4')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-libpq \
|
|
--with-mysql \
|
|
--without-openh323
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# Fix desktop file
|
|
desktop-file-edit --remove-key="Encoding" \
|
|
--set-icon="null_team-48" \
|
|
"${pkgdir}/usr/share/applications/yate-qt4.desktop"
|
|
|
|
# Install system units
|
|
install -Dm0644 "${srcdir}/yate.service" "${pkgdir}/usr/lib/systemd/system/yate.service"
|
|
install -Dm0644 "${srcdir}/yate.conf.d" "${pkgdir}/etc/conf.d/yate"
|
|
}
|
|
|