desktop/yate/PKGBUILD

58 lines
1.8 KiB
Bash
Raw Normal View History

2014-04-13 19:20:27 +08:00
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
2011-03-09 23:49:59 +08:00
# contributor Fabien <hcoohb@gmailcom>
pkgname=yate
2014-04-13 19:20:27 +08:00
pkgver=5.2.0
subver=1
2011-03-09 23:49:59 +08:00
pkgrel=1
pkgdesc="Next-generation telephony engine, qt4 client for VoIP"
2013-12-16 04:21:58 +08:00
arch=('x86_64')
2011-03-09 23:49:59 +08:00
url="http://yate.null.ro"
2012-10-14 20:51:03 +08:00
license=('GPL2')
2011-04-15 19:29:25 +08:00
depends=('qt' 'speex' 'gsm' 'postgresql-libs' 'libmysqlclient' \
2011-03-09 23:49:59 +08:00
'alsa-lib')
2012-10-14 20:51:03 +08:00
makedepends=('pkgconfig' 'desktop-file-utils')
categories=('communication')
2011-03-09 23:49:59 +08:00
options=(!makeflags)
2014-04-13 19:20:27 +08:00
source=( #"http://yate.null.ro/tarballs/yate5/${pkgname}-${pkgver}-1.tar.gz"
"http://voip.null.ro/tarballs/yate5/${pkgname}-${pkgver}-${subver}.tar.gz"
2012-10-14 20:51:03 +08:00
"yate.init"
"yate.service"
"yate.conf.d")
2014-04-13 19:20:27 +08:00
sha256sums=('9cf5c777f0f60cb24f2f34e75df99362bb683309b771367e3a9e7b6a3b6c02c2'
2012-10-14 20:51:03 +08:00
'3797c4ea3e09ac8514349905a3a994233c9c86bca1feea1242ec5fa10fb44483'
'224d8f15275717d078342c4a5d4b33c6d64dbf9772538656b590ef67a464dfec'
'1b88b8e3573a68fb5f6673b1922318a4fa51c722def21dd27b4ef8ca002812e4')
2011-03-09 23:49:59 +08:00
build() {
2012-10-14 20:51:03 +08:00
cd "${srcdir}/${pkgname}"
2011-03-09 23:49:59 +08:00
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-libpq \
--with-mysql \
2012-10-14 20:51:03 +08:00
--without-openh323
2011-03-09 23:49:59 +08:00
2012-10-14 20:51:03 +08:00
make
2011-03-09 23:49:59 +08:00
}
2012-10-14 20:51:03 +08:00
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 init scripts
install -Dm0755 "${srcdir}/yate.init" "${pkgdir}/etc/rc.d/yate"
# 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"
}
2014-04-13 19:20:27 +08:00