summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1cfdd2cc864357b8e9e751ccc245f25cbd09326 (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
49
50
51
52
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Troy C < rstrox -ta yahoo -tod com >
# Contributor: Marek Skrobacki <skrobul@skrobul.com>
# Contributor: Alasdair Haswell <ali at arhaswell dot co dot uk>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=('meanwhile' 'meanwhile-docs')
pkgver=1.1.1
pkgrel=3
pkgdesc="Library for connecting to an IBM Sametime community"
arch=('i686' 'x86_64')
url="https://github.com/obriencj/meanwhile"
makedepends=('doxygen')
license=('LGPL3')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/obriencj/meanwhile/archive/v${pkgver}.tar.gz
        fix_groupchat.patch)
sha256sums=('10de306f03897572b30ce68ca80dffd04ec218f6842bbe0a47bb8cce933698d0'
            '54d0faa5702e3b89be2a4fe994cfb2c373f409add3ba6b340a06f183c7446b21')

prepare() {
  cd "$pkgname-$pkgver/src"
  patch -Np2 -i "${srcdir}/fix_groupchat.patch"
}

build() {
  cd "$pkgname-$pkgver"
  ./autogen.sh
  CFLAGS="-mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4"
  CXXFLAGS="${CFLAGS}"
  export CFLAGS CXXFLAGS

  ./configure --prefix=/usr --enable-doxygen --disable-mailme
  make
}

check() {
  cd "$pkgname-$pkgver"  
  make check
}

package_meanwhile() {
  depends=('glib2')
  cd "$pkgname-$pkgver"
  make DESTDIR=$pkgdir install
  rm -rf "$pkgdir"/usr/share
}

package_meanwhile-docs() {
  cd "${pkgname%-docs}-$pkgver"
  make DESTDIR=$pkgdir install
  rm -rf "$pkgdir"/usr/{lib,include}
}