summaryrefslogtreecommitdiff
path: root/community/ccrtp/PKGBUILD
blob: e50fdefcc0f7ba8bd5176ea5624b343ffbcf1b0d (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
# $Id: PKGBUILD 47033 2011-05-14 10:27:41Z jelle $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor:
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=ccrtp
pkgver=1.8.0
pkgrel=1
pkgdesc="GNU ccRTP"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/ccrtp"
license=('GPL' 'custom')
depends=('commoncpp2' 'zlib' 'libxml2' 'libgcrypt')
options=('!libtool')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz gcc46.patch)
md5sums=('3410d2f43a6a28679bd091ed8b2ed228'
         '17ce9c79c4518f35f484b539bcff570d')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np1 -i $srcdir/gcc46.patch
  # arch64 fix from Mandriva
  [ "$CARCH" == "x86_64" ] && export CXXFLAGS="$CXXFLAGS -fpermissive"
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  install -D -m644 COPYING.addendum ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
  rm -rf ${pkgdir}/usr/share/info/dir
}