summaryrefslogtreecommitdiff
path: root/community/omniorb/PKGBUILD
blob: a67bc410af9299dcf7d9684c85c2e1dbf022287f (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
37
38
39
40
41
42
43
# $Id: PKGBUILD 45305 2011-04-19 11:39:08Z jelle $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Essien Ita Essien <me@essienitaessien.com>
# Contributor: Brice Mealier <mealier_brice@yahoo.fr>

pkgname=omniorb
pkgver=4.1.5
pkgrel=1
pkgdesc="A CORBA object request broker for C++ and Python."
arch=('i686' 'x86_64')
url="http://omniorb.sourceforge.net/"
license=('GPL2' 'LGPL2')
depends=('gcc-libs' 'python2' 'openssl')
makedepends=('pkgconfig')
source=(http://downloads.sourceforge.net/omniorb/omniORB-$pkgver.tar.bz2)
md5sums=('1f6070ff9b6339876976d61981eeaa6a')

build() {
  cd $srcdir/omniORB-$pkgver

  # python2 fix
  for file in $(find . -name '*.py' -print); do
    sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
    sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
  done

  # Fix to build with OpenSSL 1.0.0
  sed -i 's/SSL_METHOD/const SSL_METHOD/' \
         src/lib/omniORB/orbcore/ssl/sslContext.cc \
         include/omniORB4/sslContext.h
  ./configure --prefix=/usr --with-omniORB-config=/etc/omniorb/omniORB.cfg \
              --with-omniNames-logdir=/var/log/omniORB --with-openssl=/usr
  make
}
package(){
  cd $srcdir/omniORB-$pkgver
  make DESTDIR=$pkgdir install
  for i in man/man1/*.1; do
    install -D -m 644 $i $pkgdir/usr/share/$i
  done
  chmod 755 $pkgdir/{usr,usr/bin,usr/lib,usr/share,usr/include,usr/share/idl,usr/lib/pkgconfig,usr/lib/python2.7,usr/lib/python2.7/site-packages}
}
md5sums=('579af43a7ab1f2f88a845f1436e5238b')