# Template file for 'libfm'
pkgname=libfm
version=1.1.0
revision=2
build_style=gnu-configure
configure_args="--enable-udisks --disable-static"
short_desc="LXDE GLib/GIO based library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://pcmanfm.sourceforge.net/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/pcmanfm/$pkgname-$version.tar.gz"
checksum=b9426e588670b53570b808c49abd1d103863614dd3622559b8c3ef1392fe0b3d

hostmakedepends="pkg-config intltool"
makedepends="libexif-devel dbus-glib-devel gtk+-devel
 menu-cache-devel vala-devel"

libfm-devel_package() {
	depends="gtk+-devel menu-cache-devel libfm-${version}_${revision}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

libfm_package() {
	conf_files="
		/etc/xdg/libfm/libfm.conf
		/etc/xdg/libfm/pref-apps.conf"
	depends="desktop-file-utils udisks"
	pkg_install() {
		vmove usr
	}
}
