blob: 81e07273cec95fe269d4ed0e36c8692ebb1fa84c (
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
44
|
# $Id: PKGBUILD 60722 2011-12-17 09:55:07Z lcarlier $
# 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.6
pkgrel=1
pkgdesc="A CORBA object request broker for C++ and Python."
arch=('i686' 'x86_64' 'mips64el')
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=('44990f8139c349b53ab43110de6c629b')
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 --build=$CHOST
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}
}
|