diff options
-rw-r--r-- | libraries/libfm/README | 5 | ||||
-rw-r--r-- | libraries/libfm/doinst.sh | 7 | ||||
-rw-r--r-- | libraries/libfm/libfm.SlackBuild | 19 | ||||
-rw-r--r-- | libraries/libfm/libfm.info | 8 |
4 files changed, 30 insertions, 9 deletions
diff --git a/libraries/libfm/README b/libraries/libfm/README index 32c99a7613..9da9c168cf 100644 --- a/libraries/libfm/README +++ b/libraries/libfm/README @@ -1,4 +1,7 @@ LibFM provides file management functions built on top of Glib/GIO, giving a convenient higher-level API. -This requires menu-cache, udisks, and upower. +This requires menu-cache. +udisks and upower are needed for automounting removable media. +If libfm is built over gvfs, it will use its supported access +methods for local and remote data (trash, ftp, smb, etc.). diff --git a/libraries/libfm/doinst.sh b/libraries/libfm/doinst.sh new file mode 100644 index 0000000000..9a8ded3c60 --- /dev/null +++ b/libraries/libfm/doinst.sh @@ -0,0 +1,7 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild index 9b55d14ce9..efcc051c75 100644 --- a/libraries/libfm/libfm.SlackBuild +++ b/libraries/libfm/libfm.SlackBuild @@ -21,9 +21,11 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# slightly modified by ponce <matteo.bernardini@gmail.com> PRGNAM=libfm -VERSION=${VERSION:-20110316_c604674} +VERSION=${VERSION:-0.1.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -78,14 +80,22 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-udisks \ - --disable-debug \ - --disable-static \ + --enable-udisks=yes \ + --enable-static=no \ --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG +# add handlers for terminal and archiver from LXDE components to the default config +sed -i -e 's|\[ui\]|terminal=lxterminal -e %s\narchiver=xarchiver %s\n\n[ui]|' \ + $PKG/etc/xdg/libfm/libfm.conf +# add them also for web browser and mail client using those of Slackware +sed -i -e 's|^WebBrowser=.*|WebBrowser=mozilla-firefox.desktop|' \ + $PKG/etc/xdg/libfm/pref-apps.conf +sed -i -e 's|^MailClient=.*|MailClient=mozilla-thunderbird.desktop|' \ + $PKG/etc/xdg/libfm/pref-apps.conf + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION @@ -94,6 +104,7 @@ find $PKG/usr/doc -type f -exec chmod 0644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libfm/libfm.info b/libraries/libfm/libfm.info index 8d3c8bd54f..78e552364e 100644 --- a/libraries/libfm/libfm.info +++ b/libraries/libfm/libfm.info @@ -1,10 +1,10 @@ PRGNAM="libfm" -VERSION="20110316_c604674" +VERSION="0.1.17" HOMEPAGE="http://pcmanfm.sourceforge.net" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/lxde/libfm-20110316_c604674.tar.xz" -MD5SUM="d2973b01e62aa30223a270630e45d433" +DOWNLOAD="http://downloads.sourceforge.net/pcmanfm/libfm-0.1.17.tar.gz" +MD5SUM="a97e03d973e6ac727f28d0934d6c9ad5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="ponce" EMAIL="matteo.bernardini@gmail.com" -APPROVED="rworkman" +APPROVED="Erik Hanson" |