1 # Contributor: Tobias Sandmann <tSa *at* gmx *dot* eu>
6 pkgdesc="Minos is a lightweight, portable implementation of the OMG CORBA Notification Service written in C++."
8 url="http://minosrv.sourceforge.net/"
10 depends=('mico>=2.3.12')
13 source=(http://downloads.sourceforge.net/minosrv/minos-$pkgver.tar.gz
15 md5sums=('44f2ee92b3d7f174c8d32dbaffd8f2de'
16 'bbbc466c34346f6ce1e6f0a3c2d31655')
19 cd $startdir/src/minos
20 patch -p1 <$startdir/src/minos-$pkgver.patch
21 _mico_libs=`mico-config --libs |sed -e "s/.*\(-lmico[0-9\.]\+\)[ ]*\(-lssl\)*.*/\1 \2/g"`
22 sed -e "s/-lmico2\.3\.12/${_mico_libs}/g" -i Minos/gcc/mico/Makefile
23 cd $startdir/src/minos/gcc
24 make ORB=mico MICO_ROOT=/usr || return 1
25 install -d $startdir/pkg/usr/bin
26 install -t $startdir/pkg/usr/bin $startdir/src/minos/gcc/bin/Minos_mico
27 install -d $startdir/pkg/usr/share/doc/$pkgname
28 install -t $startdir/pkg/usr/share/doc/$pkgname $startdir/src/minos/README.unix
29 install -t $startdir/pkg/usr/share/doc/$pkgname $startdir/src/minos/gcc/run_minos_mico