summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d294b4234615bcbd545fc3e39031ac0b15b8dfb (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
# $Id: PKGBUILD 187712 2016-08-26 18:17:33Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=pion
pkgver=5.0.7
pkgrel=7
pkgdesc="A C++ development library for implementing lightweight HTTP interfaces"
url="https://github.com/cloudmeter/pion"
arch=('i686' 'x86_64')
license=('custom:Boost')
depends=('boost-libs' 'openssl' 'log4cpp')
makedepends=('boost')
provides=('pion-net')
conflicts=('pion-net')
replaces=('pion-net')
source=($pkgname-$pkgver.zip::https://github.com/cloudmeter/pion/archive/$pkgver.zip)
md5sums=('76a96dd4d34d21e41cbb2328564cba1a')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  ./autogen.sh

  # override configure bug (forces debug even when nobody asked for it)
  sed -i "s/ -ggdb//g" configure
  # override Makefile bug
  sed -i "/docs:/ s/doxygen-doc//" Makefile.in
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # Fix build with GCC 6
  CXXFLAGS+=' -std=gnu++98'

  ./configure --prefix=/usr --with-plugins=/usr/lib/pion/plugins --disable-doxygen-doc
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  # tests fail to compile with Boost 1.59.0
  #make -k check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install

  # install license
  install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost"
}