updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bin32-ocal / PKGBUILD
blobfd3957dccfc546399c6c48aede0fe0b0d386fd96
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>
4 pkgname=bin32-ocal
5 pkgver=10.1.2.3
6 pkgrel=1
7 pkgdesc="Oracle Calendar Client from Oracle Colaboration Suite."
8 arch=( 'x86_64' )
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')
16 build() {
17   _D=${pkgdir}
18   _S=${srcdir}/OracleCalendar_inst
19   _R=/opt/OracleCalendar
20   _DR=$_D/$_R
21   cd $_S
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
27   ./silent_install.sh
28   sed -i -e "s#^OCALENDAR_ROOT=/.*#OCALENDAR_ROOT=$_R#g" $_DR/bin/ocal
29   rm $_D/usr/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