updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / zeroc-ice-cpp / PKGBUILD
blob714e9325cd745f2affaf2f06351ee3da89aff71f
1 # Contributor: Arto Puranen <purcher@gmail.com>
3 pkgname=zeroc-ice-cpp
4 pkgver=3.3.1
5 pkgrel=1
6 pkgdesc="RPC Library much like CORBA except API is completely new and written entirely by zeroc"
7 arch=('i686' 'x86_64')
8 url="http://www.zeroc.com"
9 license=('gpl')
10 depends=('db' 'openssl' 'expat' 'bzip2' 'mcpp>=2.7')
11 makedepends=()
12 conflicts=('zeroc-ice')
13 backup=()
14 install=('Ice.install')
15 source=(http://www.zeroc.com/download/Ice/3.3/Ice-$pkgver.tar.gz
16                 Ice.profile
17                 Makefile.patch)
19 build() {
20   cd $startdir/src/Ice-$pkgver
22   patch -R Makefile ../Makefile.patch
23   
24   #find . -name "*.cpp" -exec sed -i "1i#include <cstring>\n#include <cstdlib>\n#include <limits.h>\n#include <memory>\n#include <db.h>" {} \;
25   #sed -i "s/memcpy/std::memcpy/" cpp/src/Slice/MD5.cpp
26   #sed -i "1i#include <memory>" cpp/include/Ice/Outgoing.h
27   #sed -i "1i#define DB_LOG_AUTOREMOVE 0x00000004" cpp/src/Freeze/SharedDbEnv.cpp
28   
29   make || return 1
30   mkdir -p $startdir/pkg/opt/Ice-$pkgver
31   make prefix=$startdir/pkg/opt/Ice-$pkgver install
32   
33   install -D -m755 $startdir/Ice.profile $startdir/pkg/etc/profile.d/ice.sh
35 md5sums=('0500306d9cdbc0fbb553fbb529de557a'
36          '8c987c73122b7079d8a5cdd2cc6afc0c'
37          '04d478be63b34578740a2fbf86029aff')
38 md5sums=('1f37dfcec4662fcde030553fb447d064'
39          '8c987c73122b7079d8a5cdd2cc6afc0c'
40          '04d478be63b34578740a2fbf86029aff')