1 # Contributor: Christoph Drexler <chrdr at gmx dot at>
3 pkgname=trustdesk-basic
8 pkgdesc="Software for Using a SmartCard as the Austrian 'Bürgerkarte'"
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')
17 INSTALLDIR="/opt/trustdesk-basic/"
18 install -d ${pkgdir}${INSTALLDIR}
20 cd ${srcdir}/trustDesk-${pkgver}-jre/
21 cp -R * ${pkgdir}${INSTALLDIR}
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
37 install -Dm644 ${pkgdir}/usr/share/applications/its-trustDeskbasic.desktop ${pkgdir}/usr/share/autostart/its-trustDeskbasic.desktop