1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
5 _revnumber=201110251649
7 pkgdesc="An Eclipse based toolset for developing Puppet modules and manifests."
9 url="http://cloudsmith.github.com/geppetto"
11 depends=('java-runtime>=6' 'gtk2')
12 install=${pkgname}.install
14 if [[ ${CARCH} = x86_64 ]];
15 then _arch=x86_64; md5sums=('ae384ee4cc34a60b004d6c73dc4ae42d');
16 else _arch=x86; md5sums=('3d9d28ca1432a9473c46d532d473b441');
18 source=("https://github.com/downloads/cloudsmith/${pkgname}/${pkgname}-linux.gtk.${_arch}-${pkgver}-R${_revnumber}.zip")
21 msg2 "Generate desktop application entry..."
22 cat > "${srcdir}"/${pkgname}.desktop << EOF
28 Exec=/usr/bin/${pkgname}
29 Icon=/opt/${pkgname}/icon.xpm
32 Categories=Development;
37 msg2 "Install the assembly at /opt/${pkgname}..."
38 install -dm755 "${pkgdir}"/opt/${pkgname}
39 cp -a "${srcdir}"/${pkgname}/* "${pkgdir}"/opt/${pkgname}
41 msg2 "Install link to the executable in /usr/bin..."
42 install -dm755 "${pkgdir}"/usr/bin
43 ln -s /opt/${pkgname}/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
45 msg2 "Install link to the config file in /etc..."
46 install -dm755 "${pkgdir}"/etc
47 ln -s /opt/${pkgname}/${pkgname}.ini "${pkgdir}"/etc/${pkgname}.ini
49 msg2 "Install links to copyright resources at /usr/share/licenses/${pkgname}..."
50 install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
51 ln -s /opt/${pkgname}/epl-v10.html "${pkgdir}/usr/share/licenses/${pkgname}/"
52 ln -s /opt/${pkgname}/notice.html "${pkgdir}/usr/share/licenses/${pkgname}/"
54 msg2 "Install desktop application entry in /usr/share/applications..."
55 install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop