void-packages/srcpkgs/libfm/template
Alessio Sergi 906426f5ae libfm: split out libfm-gtk
Required by libfm-qt>=0.11.0.
2016-09-29 09:35:49 +02:00

64 lines
1.9 KiB
Bash

# Template file for 'libfm'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/libfm-extra"
#
pkgname=libfm
version=1.2.4
revision=2
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 <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
# 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
}
}