Skip to content

Instantly share code, notes, and snippets.

@Celedhrim Celedhrim/PKGBUILD
Created Feb 19, 2014

Embed
What would you like to do?
# Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
# Modified by: Ross Williams <gunzy83au@gmail.com>
# Modified by: Celedhrim <celedhrim@ielf.org>
# Source: https://github.com/nicoulaj/archlinux-packages
# Update: https://gist.github.com/gunzy83/8450556
# Update 4.1.0 : https://gist.github.com/Celedhrim/9098638
pkgname=geppetto
pkgver=4.1.0
_revnumber=201402150632
pkgrel=1
pkgdesc="An Eclipse based toolset for developing Puppet modules and manifests."
arch=(i686 x86_64)
url="http://puppetlabs.github.io/geppetto"
license=(APACHE EPL)
depends=('java-runtime>=6' 'gtk2')
install=${pkgname}.install
changelog=Changelog
if [[ ${CARCH} = x86_64 ]];
then _arch=x86_64; md5sums=('f348291c35e36527d6943365d24795db');
else _arch=x86; md5sums=('0c51a7e22a86dfa665e8065ecf66870e');
fi
source=("https://downloads.puppetlabs.com/${pkgname}/4.x/${pkgname}-linux.gtk.${_arch}-${pkgver}-R${_revnumber}.zip")
build() {
msg2 "Generate desktop application entry..."
cat > "${srcdir}"/${pkgname}.desktop << EOF
[Desktop Entry]
Version=${pkgver}
Encoding=UTF-8
Name=Geppetto
Comment=${pkgdesc}
Exec=/usr/bin/${pkgname}
Icon=/opt/${pkgname}/icon.xpm
Terminal=false
Type=Application
Categories=Development;
EOF
}
package() {
msg2 "Install the assembly at /opt/${pkgname}..."
install -dm755 "${pkgdir}"/opt/${pkgname}
cp -a "${srcdir}"/${pkgname}/* "${pkgdir}"/opt/${pkgname}
msg2 "Install link to the executable in /usr/bin..."
install -dm755 "${pkgdir}"/usr/bin
ln -s /opt/${pkgname}/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
msg2 "Install link to the config file in /etc..."
install -dm755 "${pkgdir}"/etc
ln -s /opt/${pkgname}/${pkgname}.ini "${pkgdir}"/etc/${pkgname}.ini
msg2 "Install links to copyright resources at /usr/share/licenses/${pkgname}..."
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s /opt/${pkgname}/epl-v10.html "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s /opt/${pkgname}/notice.html "${pkgdir}/usr/share/licenses/${pkgname}/"
msg2 "Install desktop application entry in /usr/share/applications..."
install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.