# Template file for 'libfm' # # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/libfm-extra" # pkgname=libfm version=1.2.5 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}" conf_files="/etc/xdg/libfm/libfm.conf" short_desc="Core library of PCManFM file manager" maintainer="Juan RP " homepage="http://pcmanfm.sourceforge.net/" license="GPL-2" distfiles="${SOURCEFORGE_SITE}/pcmanfm/$pkgname-$version.tar.xz" checksum=c706bb1020cf5f2d6f5a9226f692ce1985947134dcf2bde64278bd0420779b5a 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 # move locales to /usr/share/locale (needed for musl libc) if [ -d ${DESTDIR}/usr/lib/locale ]; then mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share fi } libfm-devel_package() { depends="glib-devel menu-cache-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig/libfm.pc vmove usr/lib/libfm.so } } libfm-gtk_package() { short_desc+=" - GTK+ library" pkg_install() { vmove usr/bin vmove usr/lib/libfm-gtk.so.* vmove usr/lib/libfm/modules/gtk-*.so vmove usr/share/applications vmove usr/share/libfm/images vmove usr/share/libfm/ui vmove usr/share/man } } libfm-gtk-devel_package() { depends="gtk+-devel libfm-devel>=${version}_${revision} libfm-gtk>=${version}_${revision}" short_desc+=" - GTK+ library (development files)" pkg_install() { vmove usr/lib/libfm-gtk.so vmove usr/lib/pkgconfig/libfm-gtk.pc } }