#Packager: Dimitris Tzemos pkgname=libfm pkgver=1.2.1 pkgrel=1dj source=(http://downloads.sourceforge.net/pcmanfm/libfm-$pkgver.tar.xz) docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://sourceforge.net/projects/pcmanfm/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libfm (PCManFM library)" "LibFM provides file management functions built on top of Glib/GIO," "giving a convenient higher-level API." ) build() { cd $SRC/$pkgname-$pkgver ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-static \ --enable-udisks \ --with-gnu-ld \ --build=$arch-slackware-linux make -j $numjobs LDFLAGS+=' -lgobject-2.0 -lglib-2.0' || return 1 make install DESTDIR=$PKG # Temporary fix to FS#32361 rm -rf "$PKG"/usr/include/libfm mv "$PKG"/usr/include/libfm-1.0/ "$PKG"/usr/include/libfm # add handlers for terminal and archiver from LXDE components to the default config sed -i -e 's|\[ui\]|terminal=lxterminal -e %s\narchiver=file-roller %s\n\n[ui]|' \ $PKG/etc/xdg/libfm/libfm.conf }