From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/commoncpp2/PKGBUILD | 38 +++++++++++++++++++++++++++++++++ community/commoncpp2/commoncpp2.install | 22 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 community/commoncpp2/PKGBUILD create mode 100644 community/commoncpp2/commoncpp2.install (limited to 'community/commoncpp2') diff --git a/community/commoncpp2/PKGBUILD b/community/commoncpp2/PKGBUILD new file mode 100644 index 000000000..806cc23a9 --- /dev/null +++ b/community/commoncpp2/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 64380 2012-02-12 11:04:24Z arodseth $ +# Maintainer: Sergej Pupykin +# Contributor: Franco Tortoriello +# Contributor: Andrea Scarpino +# Contributor: Jeff Mickey +# Contributor: John Proctor +# Contributor: Alexander Rødseth + +pkgname=commoncpp2 +pkgver=1.8.1 +pkgrel=3 +pkgdesc="GNU Common C++ 2" +arch=('x86_64' 'i686') +url='http://www.gnu.org/software/commoncpp/' +license=('GPL' 'custom') +depends=('gcc-libs' 'zlib' 'sh') +options=('!libtool' '!makeflags') +install=$pkgname.install +source=("http://ftp.gnu.org/pub/gnu/commoncpp/$pkgname-$pkgver.tar.gz") +sha256sums=('53ced4aff74e28a1d8018eb2b4974519028db3c12471ab6dff1c873578c9af4e') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + sed -i -e '50 a\#include ' inc/cc++/applog.h + ./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" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/commoncpp2/commoncpp2.install b/community/commoncpp2/commoncpp2.install new file mode 100644 index 000000000..762cdfb8e --- /dev/null +++ b/community/commoncpp2/commoncpp2.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(commoncpp2.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf