updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ocal / PKGBUILD
blob758c34698e87f7816f7c09ac841a4afacfa0a6c3
1 # Maintainer: Edward Tjörnhammar <xhemi@cube2.se>
2 # Contributor: Edward Tjörnhammar <xhemi@cube2.se>
3 pkgname=ocal
4 pkgver=10.1.2.3
5 pkgrel=1
6 pkgdesc="Oracle Calendar Client from Oracle Colaboration Suite."
7 arch=( i686 )
8 url="http://www.oracle.com/technology/products/ocal/index.html"
9 source="http://download.oracle.com/otn/nt/ocs_clients/1012/cal_linux_1012.tar.gz"
10 license=('OTN License Agreement')
11 depends=('libstdc++5')
12 md5sums=('4c7e7f913dec93e4673a50024d30feb3')
14 build() {
15   _D=$startdir/pkg
16   _S=$startdir/src/OracleCalendar_inst
17   _R=/opt/OracleCalendar
18   _DR=$_D/$_R
19   pushd $_S
20   cp cal_linux cal_linux.bak
21   cat cal_linux.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > cal_linux
22   echo "USER_INSTALL_DIR=$_DR" > ocal_conf/silent.properties
23   echo "USER_SHORTCUTS=$_D/usr/bin" >> ocal_conf/silent.properties
24   echo "INSTALLER_UI=silent" >> ocal_conf/silent.properties
25   ./silent_install.sh
26   sed -i -e "s#^OCALENDAR_ROOT=/.*#OCALENDAR_ROOT=$_R#g" $_DR/bin/ocal
27   rm $_D/bin/ocal
28   ln -s $_R/bin/ocal $_D/usr/bin/ocal
29   popd