summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b90f041698c4380c1738571ba9f092870d57e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
# Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=twinkle
pkgver=1.10.3
pkgrel=1
pkgdesc='Softphone for voice over IP and IM communication using SIP'
arch=('x86_64')
url='http://twinkle.dolezel.info/'
license=('GPL2')
depends=('ucommon' 'ccrtp' 'libxml2' 'libsndfile' 'imagemagick' 'readline'
          'qt5-base' 'qt5-declarative' 'alsa-lib' 'libzrtpcpp'
          'bcg729' 'speex' 'speexdsp')
makedepends=('cmake' 'bison' 'flex' 'qt5-tools')
source=("https://github.com/LubosD/twinkle/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz"
        'G729-API.patch')
b2sums=('80b2e91923b2a95d1b727cda5f8ea68c0aac421ea347e7b899a28b9908c3c5c2806a3b11cec9d46002d08c8bcf89221b3fcd56408ec68e191c1f78b67b13bbc4'
        'e86166cc48c46697f5b20bdc3fbd169dcb07214aa47d030d554fe7bd10e79748f88ca2a4a1ce359ba879c1edfe63ffed10cbba9c11b04f6171b491e14b67189c')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -Np1 < "${srcdir}"/G729-API.patch
}

build() {
  cd ${pkgname}-${pkgver}
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DWITH_QT5=On \
    -DWITH_DBUS=On \
    -DWITH_ALSA=On \
    -DWITH_ZRTP=On \
    -DWITH_G729=On \
    -DWITH_SPEEX=On
  make -C build
}

package() {
  cd ${pkgname}-${pkgver}
  make -C build DESTDIR="${pkgdir}" install
}