diff --git a/pkgbuild/dispcalgui/PKGBUILD b/pkgbuild/dispcalgui/PKGBUILD new file mode 100644 index 0000000..f4d0398 --- /dev/null +++ b/pkgbuild/dispcalgui/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Cedric Girard +# Contributor: foxbunny + +pkgname=dispcalgui +pkgver=0.7.0.7 +pkgrel=1 +pkgdesc="A GUI frontend for several utilities from the open source color management system Argyll CMS " +arch=('i686' 'x86_64') +url="http://hoech.net/dispcalGUI/" +license=('GPL3') +depends=('argyllcms>=1.3.0' 'python2>=2.5' 'wxpython>=2.8' 'hicolor-icon-theme' 'desktop-file-utils') +optdepends=('python2-numpy: to enable curve viewer' + 'gksu: For running as root') +makedepends=('python>=2.5' 'libx11' 'libxrandr' 'libxinerama' 'libxxf86vm' 'setuptools>=0.6c11' 'xdg-utils') +groups=('painters-studio-tools' 'painters-studio-extras' 'painters-studio-complete') +install=${pkgname}.install +source=(http://dispcalgui.hoech.net/dispcalGUI-${pkgver}.tar.gz ${pkgname}.desktop) + +md5sums=('0507992d7fbc593ee41db6b86739f727' + 'a65019defc10243c7e0fd2925405d26e') + +package() { + cd "${srcdir}"/dispcalGUI-${pkgver} + + python2 setup.py install --root="${pkgdir}" --optimize=1 + + install -Dm644 \ + "${srcdir}"/dispcalgui.desktop \ + "${pkgdir}"/usr/share/applications/${pkgname}.desktop +} + +# vim:set ts=2 sw=2 et: diff --git a/pkgbuild/dispcalgui/dispcalgui.desktop b/pkgbuild/dispcalgui/dispcalgui.desktop new file mode 100644 index 0000000..06245c3 --- /dev/null +++ b/pkgbuild/dispcalgui/dispcalgui.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Exec=gksudo dispcalgui +Name=dispcalGUI +GenericName=dispcalGUI +MimeType=application/x-designer +Icon=/usr/share/pixmaps/dispcalGUI.png +Terminal=false +Type=Application +Categories=Graphics;2DGraphics diff --git a/pkgbuild/dispcalgui/dispcalgui.install b/pkgbuild/dispcalgui/dispcalgui.install new file mode 100644 index 0000000..9256fe5 --- /dev/null +++ b/pkgbuild/dispcalgui/dispcalgui.install @@ -0,0 +1,19 @@ +# arg 1: the new package version +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade(){ + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + +# vim:set ts=2 sw=2 et: