updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / trustdesk-basic / PKGBUILD
blobd19e5001ff44e8c1d829f7bd9c67c37a59bceea4
1 # Contributor: Christoph Drexler <chrdr at gmx dot at>
3 pkgname=trustdesk-basic
4 _pkgname=tdb
5 pkgver=2.8.1
6 _pkgver=281
7 pkgrel=2
8 pkgdesc="Software for Using a SmartCard as the Austrian 'Bürgerkarte'"
9 arch=('i686')
10 license=('unknown')
11 url="http://update.buergerkarte.at/"
12 url="http://www.buergerkarte.at/de/voraussetzungen/software.html"
13 source=(http://update.buergerkarte.at/download/Linux/${_pkgname}${_pkgver}_x86_32bit_jre.tgz)
14 md5sums=('d50d320bc0db8ba75ac497da715e9c40')
16 build() {
17   INSTALLDIR="/opt/trustdesk-basic/"
18   install -d ${pkgdir}${INSTALLDIR}
20   cd ${srcdir}/trustDesk-${pkgver}-jre/
21   cp -R * ${pkgdir}${INSTALLDIR}
23   # install icon file
24   install -Dm644 conf/trustDesk48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/trustDesk48.png
25   # install menu entries
26   install -Dm644 conf/kde-data/its-trustDeskbasic.desktop ${pkgdir}/usr/share/applications/its-trustDeskbasic.desktop
27   install -Dm644 conf/kde-data/its-trustDeskbasic-Applet.desktop ${pkgdir}/usr/share/applications/its-trustDeskbasic-Applet.desktop
28   install -Dm644 conf/kde-data/its-trustDeskbasic-Documentation.desktop ${pkgdir}/usr/share/applications/its-trustDeskbasic-Documentation.desktop
30   # modify execution paths
31   sed -i -e "s|\$EXEC.|${INSTALLDIR}autostart.sh|" ${pkgdir}/usr/share/applications/its-trustDeskbasic.desktop \
32                                                    ${pkgdir}/usr/share/applications/its-trustDeskbasic-Documentation.desktop
33   sed -i -e "s|\$EXEC.|${INSTALLDIR}cardaccess.Lin/trustDesk|" ${pkgdir}/usr/share/applications/its-trustDeskbasic-Applet.desktop
34   sed -i -e "s|/root/tdb-release|${INSTALLDIR}|" ${pkgdir}${INSTALLDIR}/autostart.sh
36   # install autostart
37   install -Dm644 ${pkgdir}/usr/share/applications/its-trustDeskbasic.desktop ${pkgdir}/usr/share/autostart/its-trustDeskbasic.desktop