desktop/commoncpp2/PKGBUILD

39 lines
1.0 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=commoncpp2
pkgver=1.8.1
pkgrel=1
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')
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
}