updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / geppetto / PKGBUILD
blob9b9cb9b0d7085003404a1f1d84c0cc055c303cef
1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=geppetto
4 pkgver=2.1.0
5 _revnumber=201110251649
6 pkgrel=1
7 pkgdesc="An Eclipse based toolset for developing Puppet modules and manifests."
8 arch=(i686 x86_64)
9 url="http://cloudsmith.github.com/geppetto"
10 license=(APACHE EPL)
11 depends=('java-runtime>=6' 'gtk2')
12 install=${pkgname}.install
13 changelog=Changelog
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")
20 build() {
21   msg2 "Generate desktop application entry..."
22   cat > "${srcdir}"/${pkgname}.desktop << EOF
23 [Desktop Entry]
24 Version=${pkgver}
25 Encoding=UTF-8
26 Name=Geppetto
27 Comment=${pkgdesc}
28 Exec=/usr/bin/${pkgname}
29 Icon=/opt/${pkgname}/icon.xpm
30 Terminal=false
31 Type=Application
32 Categories=Development;
33 EOF
36 package() {
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