updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / talend-mdm / PKGBUILD
blobd0180ea5aeac5da4e4136fd72ffb3ab94b3aa414
1 # Maintainer: Christopher Heien <chris.h.heien@gmail.com>
3 pkgname="talend-mdm"
4 _altname="Talend MDM Community Edition"
5 _shortname="TMDMCE"
6 _altshortname="tmdmce"
7 pkgver="4.2.2"
8 _build="r63143"
9 pkgrel=1
10 pkgdesc="Master Data Management software suite."
11 arch=('i686' 'x86_64')
12 url=("http://www.talend.com")
13 license=("GPL2")
14 depends=("gtk2" "glib2")
18 options=("!strip")
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')
24 build(){
25         
26     install -dm755 ${pkgdir}/opt/${pkgname} ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications || return 1    
27     
28     cd ${srcdir}
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
33    
34     # Remove all non-Linux startup scripts   
35     rm -rf  *macosx* *solaris* *gtk-ppc* *win* || return 1
36     
37     # Install files
38     cp -Rp * ${pkgdir}/opt/${pkgname} || return 1
39     
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
45     
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