summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82830b8d29911a90683c8e2646582a9964a25bc1 (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
46
47
48
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgbase='swift-git'
pkgname=('swift-im-git' 'swiften-git')
pkgver=4.0beta2.r191.gf93289408
pkgrel=1
arch=('i686' 'x86_64')
url="http://swift.im/"
license=('GPL3')
makedepends=('git' 'python2' 'openssl' 'boost' 'qt5-base' 'qt5-multimedia'
             'qt5-webkit' 'qt5-x11extras' 'qt5-tools' 'qt5-svg')
source=("git://swift.im/swift")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/swift"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^swift\.//'
}

# Those options need to be consistent between each scons invocation.
_scons_options='max_jobs=1 optimize=1 debug=0 swiften_dll=1'
_directory='swift'

build() {
  cd "$srcdir/$_directory"
  ./scons $_scons_options Swift Swiften
}

package_swift-im-git() {
  pkgdesc='XMPP client written in C++ with Qt and Swiften'
  depends=("swiften-git=$pkgver" 'qt5-base' 'qt5-multimedia' 'qt5-webkit'
           'qt5-x11extras' 'qt5-svg')
  provides=('swift-im=3.0')
  conflicts=('swift-im')

  cd "$srcdir/$_directory"
  ./scons $_scons_options SWIFT_INSTALLDIR="$pkgdir/usr/" "$pkgdir/usr/"
}

package_swiften-git() {
  pkgdesc='XMPP library written in C++ with Boost'
  depends=('boost-libs')
  provides=('swiften=3.0')
  conflicts=('swiften')

  cd "$srcdir/$_directory"
  ./scons $_scons_options SWIFTEN_INSTALLDIR="$pkgdir/usr/" "$pkgdir/usr/"
}