# Template file for 'Thunar'
pkgname=Thunar
version=1.4.0
revision=3
build_style=gnu-configure
configure_args="--enable-gio-unix --enable-dbus --enable-gudev --enable-exif
--enable-pcre --enable-notifications"
depends="gvfs hicolor-icon-theme desktop-file-utils"
makedepends="pkg-config intltool pcre-devel>=8.30 glib-devel>=2.32.3_2
libgudev-devel libnotify-devel
libxfce4util-devel libxfce4ui-devel gtk+-devel dbus-glib-devel
libexif-devel exo-devel xfce4-panel-devel startup-notification-devel"
short_desc="Thunar File Manager"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://thunar.xfce.org"
license="GPL-2, LGPL-2.1"
distfiles="http://archive.xfce.org/src/xfce/thunar/1.4/Thunar-$version.tar.bz2"
checksum=2c11a19e64cef708a264fb4d5d933389899c3d132fe7b1e313dd6e37bfe4c8ba
long_desc="
 Thunar is a new modern file manager for the Xfce Desktop Environment.
 It has been designed from the ground up to be fast and easy-to-use.
 Its user interface is clean and intuitive, and does not include any
 confusing or useless options. Thunar is fast and responsive with a
 good start up time and directory load time."

conf_files="/etc/xdg/Thunar/uca.xml"
gtk_iconcache_dirs="/usr/share/icons/hicolor"
subpackages="$pkgname-devel"
make_dirs="/etc/polkit-1/localauthority 0700 root root"

post_install() {
	# install udisks permission file
	install -dm755 ${DESTDIR}/etc/polkit-1/localauthority/50-local.d
	install -m644 ${FILESDIR}/org.freedesktop.udisks.pkla \
		${DESTDIR}/etc/polkit-1/localauthority/50-local.d/
}
