void-packages/srcpkgs/libfm/template
2016-02-21 09:20:11 +01:00

40 lines
1.2 KiB
Bash

# Template file for 'libfm'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/libfm-extra"
#
pkgname=libfm
version=1.2.4
revision=1
build_style=gnu-configure
configure_args="--enable-udisks --disable-static"
hostmakedepends="automake glib-devel gtk-doc gettext-devel libtool pkg-config intltool vala-devel"
makedepends="libexif-devel dbus-glib-devel gtk+-devel menu-cache-devel"
depends="libfm-extra>=${version}_${revision} desktop-file-utils"
conf_files="/etc/xdg/libfm/libfm.conf"
short_desc="LXDE GLib/GIO based library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://pcmanfm.sourceforge.net/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/pcmanfm/$pkgname-$version.tar.xz"
checksum=7804f6f28cb3d1bc8ffb3151ab7ff0c063b27c5f9b06c682eb903e01cf25502f
pre_configure() {
autoreconf -fi
}
post_install() {
# remove files that belong to libfm-extra
rm -f ${DESTDIR}/usr/lib/libfm-extra.so*
rm -f ${DESTDIR}/usr/lib/pkgconfig/libfm-extra.pc
rm -f ${DESTDIR}/usr/include/libfm/fm-{extra,version,xml-file}.h
}
libfm-devel_package() {
depends="gtk+-devel menu-cache-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}