summaryrefslogtreecommitdiff
path: root/community/ccrtp/PKGBUILD
blob: 25595a7d7e4111eba87fe4b98a47c7748e53e3f6 (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
# $Id: PKGBUILD 64382 2012-02-12 15:47:02Z arodseth $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=ccrtp
pkgver=1.8.0
pkgrel=2
pkgdesc="GNU ccRTP"
arch=('x86_64' 'i686' 'mips64el')
url="http://www.gnu.org/software/ccrtp/"
license=('GPL' 'custom')
depends=('commoncpp2' 'zlib' 'libxml2' 'libgcrypt')
options=('!libtool')
install=$pkgname.install
source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
        'gcc46.patch')
sha256sums=('365feddd276c78104600204ae6db4e76c66036df1e5b905e855239daac6a2473'
            '4ac9385228dc8b8893e0868d5a06477e4009e9fb2dc191460406da58fc6a6fb3')

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

  patch -Np1 -i "$srcdir/gcc46.patch"
  # arch64 fix from Mandriva
  [ "$CARCH" == "x86_64" ] && export CXXFLAGS="$CXXFLAGS -fpermissive"
  export LDFLAGS="$LDFLAGS `pkg-config --libs libccgnu2`"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

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

  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING.addendum "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  #rm -rf "$pkgdir/usr/share/info/dir"
}

# vim:set ts=2 sw=2 et: