1 # Maintainer: Ray Kohler <ataraxia937 at gmail dot com>
2 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
3 # Contributor: Edward Tjörnhammar <xhemi at cube2 dot se>
7 pkgdesc="Oracle Calendar Client from Oracle Colaboration Suite."
9 url="http://www.oracle.com/technology/products/ocal/index.html"
10 source=("http://download.oracle.com/otn/nt/ocs_clients/1012/cal_linux_1012.tar.gz" "license.txt")
11 license=('custom:OTN')
12 depends=('lib32-libstdc++5' 'lib32-libxp' 'lib32-libxt' 'lib32-libxtst' 'lib32-libxmu' 'lib32-libxpm')
13 md5sums=('4c7e7f913dec93e4673a50024d30feb3'
14 'ece98fe3d17ee7e5dcf6efcc7d70e401')
18 _S=${srcdir}/OracleCalendar_inst
19 _R=/opt/OracleCalendar
22 cp cal_linux cal_linux.bak
23 cat cal_linux.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > cal_linux
24 echo "USER_INSTALL_DIR=$_DR" > ocal_conf/silent.properties
25 echo "USER_SHORTCUTS=$_D/usr/bin" >> ocal_conf/silent.properties
26 echo "INSTALLER_UI=silent" >> ocal_conf/silent.properties
28 sed -i -e "s#^OCALENDAR_ROOT=/.*#OCALENDAR_ROOT=$_R#g" $_DR/bin/ocal
30 ln -s $_R/bin/ocal $_D/usr/bin/ocal
31 chmod 755 ${_D}/opt ${_D}/usr ${_D}/usr/bin
32 chown root:root ${_D}/usr/bin/ocal
33 install -D -m644 ${srcdir}/license.txt ${_D}/usr/share/licenses/${pkgname}/license.txt