1 # Maintainer: Christopher Heien <chris.h.heien@gmail.com>
4 _altname="Talend MDM Community Edition"
10 pkgdesc="Master Data Management software suite."
11 arch=('i686' 'x86_64')
12 url=("http://www.talend.com")
14 depends=("gtk2" "glib2")
19 source=("http://downloads.sourceforge.net/project/${pkgname}/${_altname// /%20}/${pkgver}/${_shortname}-All-${_build}-V${pkgver}.zip"
20 "${_altname// /}.desktop")
21 sha1sums=('e71cb8c3578bc4769bcc4fe47e0937d415ce69e8'
22 '75ec4158dd53f11657e005fb41ca64500613c4ea')
26 install -dm755 ${pkgdir}/opt/${pkgname} ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications || return 1
29 install -m644 ${_shortname}-Server-All-${_build}-V${pkgver}.jar ${pkgdir}/opt/${pkgname}
31 unzip -o ${_shortname}-Studio-All-${_build}-V${pkgver}.zip &&
32 cd ${_shortname}-Studio-All-${_build}-V${pkgver} || return 1
34 # Remove all non-Linux startup scripts
35 rm -rf *macosx* *solaris* *gtk-ppc* *win* || return 1
38 cp -Rp * ${pkgdir}/opt/${pkgname} || return 1
40 # Link application icon
41 ln -s /opt/${pkgname}/plugins/org.talend.rcp.branding.tombundle_${pkgver}.${_build}/icons/appli_32x32.gif ${pkgdir}/opt/${pkgname}/icon.gif
43 # Link executable based on architecture
44 install -m 0755 ${srcdir}/${_altname// /}.desktop ${pkgdir}/usr/share/applications/ || return 1
46 ln -s /opt/${pkgname}/${_shortname}-linux-gtk-${CARCH//i6/x} ${pkgdir}/usr/bin/${pkgname} || return 1
47 chmod +x ${pkgdir}/opt/${pkgname}/${_shortname}-linux-gtk-${CARCH//i6/x} || return 1