summaryrefslogtreecommitdiff
path: root/community/commoncpp2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/commoncpp2/PKGBUILD')
-rw-r--r--community/commoncpp2/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/commoncpp2/PKGBUILD b/community/commoncpp2/PKGBUILD
new file mode 100644
index 000000000..411a1d3f2
--- /dev/null
+++ b/community/commoncpp2/PKGBUILD
@@ -0,0 +1,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')
+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
+}