summaryrefslogtreecommitdiff
path: root/community/dispcalgui
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-02 01:31:32 -0700
committerroot <root@rshg054.dnsready.net>2013-08-02 01:31:32 -0700
commitf7cd2a0a073da2373cd3f3c8e31515dd0b83b645 (patch)
treee28c5c379825afaf02a927a8f1d1b1fcb94c2362 /community/dispcalgui
parent70ec180b1cca6eda5576597c2bfff9171f7815bf (diff)
Fri Aug 2 01:30:56 PDT 2013
Diffstat (limited to 'community/dispcalgui')
-rw-r--r--community/dispcalgui/PKGBUILD33
-rw-r--r--community/dispcalgui/dispcalgui.install19
2 files changed, 52 insertions, 0 deletions
diff --git a/community/dispcalgui/PKGBUILD b/community/dispcalgui/PKGBUILD
new file mode 100644
index 000000000..974ee5eb0
--- /dev/null
+++ b/community/dispcalgui/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 94958 2013-08-01 14:04:59Z tredaelli $
+# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: Cedric Girard <girard.cedric@gmail.com>
+# Contributor: foxbunny <bg.branko@gmail.com>
+
+pkgname=dispcalgui
+pkgver=1.2.7.0
+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')
+makedepends=('libx11' 'libxrandr' 'libxinerama' 'libxxf86vm' 'setuptools' 'xdg-utils')
+depends=('argyllcms' 'wxpython' 'hicolor-icon-theme' 'desktop-file-utils' 'python2-numpy')
+optdepends=('gksu: For running as root')
+install=${pkgname}.install
+
+source=("http://downloads.sourceforge.net/project/dispcalgui/release/${pkgver}/dispcalGUI-${pkgver}.tar.gz")
+
+md5sums=('a0ff80ee5e560fbe208c12189e00c470')
+
+package() {
+ cd "${srcdir}"/dispcalGUI-${pkgver}
+
+ find . -name "*.py" -exec sed -i 's!/usr/bin/env python!/usr/bin/env python2!g' {} +
+
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ #udev rules are shipped with argyllcms
+ rm -rf "${pkgdir}"/etc/udev/
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/dispcalgui/dispcalgui.install b/community/dispcalgui/dispcalgui.install
new file mode 100644
index 000000000..9256fe5e3
--- /dev/null
+++ b/community/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: