summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d72c1a6fb58d3c262446377b5c35ab33e676bdb9 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Michele Mocciola <mickele>
# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Essien Ita Essien <me@essienitaessien.com>
# Contributor: Brice Mealier <mealier_brice@yahoo.fr>

pkgname=omniorb417
pkgver=4.1.7
pkgrel=3
pkgdesc="A CORBA object request broker for C++ and Python. Legacy version."
arch=('i686' 'x86_64')
url="http://omniorb.sourceforge.net/"
license=('GPL2' 'LGPL2')
provides=('omniorb=4.1.7')
conflicts=('omniorb')
depends=('python2' 'openssl')
makedepends=('pkgconfig')
source=("http://downloads.sourceforge.net/omniorb/omniORB-${pkgver}.tar.bz2"
        "omniORB.cfg.patch")

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

  patch -p1 < ${srcdir}/omniORB.cfg.patch

  # 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

  PYTHON=/usr/bin/python2.7 ./configure \
         --prefix=/usr \
         --with-omniORB-config=/etc/omniORB.cfg \
         --with-omniNames-logdir=/var/log/omniORB \
         --with-openssl=/usr \
         --disable-ipv6

  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}

  # Install config file
  mkdir -p "${pkgdir}/etc"
  install -m 644 sample.cfg "${pkgdir}/etc/omniORB.cfg"
}
md5sums=('ce8cbe25418a76a2aac5395399463362'
         'e2997d43b0be667a45cc3caf74a6ac75')