summaryrefslogtreecommitdiff
path: root/community/commoncpp2/PKGBUILD
blob: 5eedfa17ae2b0f30c38a603b6b30960a591089e8 (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
# $Id: PKGBUILD 32643 2010-11-16 09:56:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Mantainer: Franco Tortoriello <franco.tortoriello@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=commoncpp2
pkgver=1.8.1
pkgrel=2
pkgdesc="GNU Common C++ 2"
arch=('i686' 'x86_64' 'mips64el')
url='http://www.gnu.org/software/commoncpp/'
license=('GPL' 'custom')
depends=('gcc-libs' 'zlib' 'sh')
options=('!libtool' '!makeflags')
source=("http://ftp.gnu.org/pub/gnu/commoncpp/${pkgname}-${pkgver}.tar.gz")
md5sums=('4804b184e609154ba2bc0aa9f61dc6ef')
md5sums=('4804b184e609154ba2bc0aa9f61dc6ef')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  sed -i -e '50 a\#include <sys/stat.h>' inc/cc++/applog.h
  ./configure --prefix=/usr
  make
}

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

  gzip -9 ${pkgdir}/usr/share/info/commoncpp2.info
  rm ${pkgdir}/usr/share/info/dir

  install -D -m644 COPYING.addendum ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}