summaryrefslogtreecommitdiffstats
path: root/libraries/libfm
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libfm')
-rw-r--r--libraries/libfm/README16
-rw-r--r--libraries/libfm/libfm.SlackBuild39
-rw-r--r--libraries/libfm/libfm.info6
3 files changed, 32 insertions, 29 deletions
diff --git a/libraries/libfm/README b/libraries/libfm/README
index 17d6d7cc0f..d8dc092950 100644
--- a/libraries/libfm/README
+++ b/libraries/libfm/README
@@ -1,15 +1,11 @@
LibFM provides file management functions built on top of Glib/GIO,
giving a convenient higher-level API.
-vala is an optional dependency (for custom file manager actions).
+You can choose which version of gtk the library will build against:
-you can choose between which version of gtk the library will build
-against:
+ GTK3=yes link with gtk+3 (default)
+ GTK3=no link with gtk+2
+ GTK3=- don't link against gtk at all
- GTK=2 link with gtk+2 (default)
- GTK=3 link with gtk+3
- GTK=0 don't link against gtk at all
-
-pass the script the parameter you prefer, like
-
- GTK=3 ./libfm.SlackBuild
+Pass the script the parameter you prefer, like
+ GTK3=no ./libfm.SlackBuild
diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild
index 1555253ffb..99a22733f4 100644
--- a/libraries/libfm/libfm.SlackBuild
+++ b/libraries/libfm/libfm.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libfm
# Copyright 2010 Chris Abela <chris.abela@maltats.com>
-# Copyright 2013-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2013-2024 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=libfm
-VERSION=${VERSION:-1.3.1}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.3.2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -55,13 +62,10 @@ else
LIBDIRSUFFIX=""
fi
-# Enable custom actions if we have vala available
-if [ -h /usr/bin/vapigen ]; then actions=""; else actions="--disable-actions"; fi
-
-case "$GTK" in
- 3) gtk="--with-gtk=3 --enable-gtk-doc" ;;
- 0) gtk="--without-gtk" ;;
- *) gtk="--with-gtk=2 --enable-gtk-doc" ;;
+case "${GTK3:-yes}" in
+ "no") gtk="--with-gtk=2 --enable-gtk-doc" ;;
+ "-") gtk="--without-gtk" ;;
+ *) gtk="--with-gtk=3 --enable-gtk-doc" ;;
esac
set -e
@@ -92,7 +96,6 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-static=no \
--enable-udisks \
$gtk \
- $actions \
--build=$ARCH-slackware-linux
make
@@ -107,8 +110,10 @@ make install-strip DESTDIR=$PKG
cd $PKG/usr/lib$LIBDIRSUFFIX
rm -f libfm-extra.so* pkgconfig/libfm-extra.pc libfm-extra.la )
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+if [ -d $PKG/usr/man ]; then
+ find $PKG/usr/man -type f -exec gzip -9 {} \;
+ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+fi
# 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]|' \
@@ -119,9 +124,11 @@ cp -a AUTHORS COPYING NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/libfm/libfm.info b/libraries/libfm/libfm.info
index dd5fd90d6b..33d95cb239 100644
--- a/libraries/libfm/libfm.info
+++ b/libraries/libfm/libfm.info
@@ -1,8 +1,8 @@
PRGNAM="libfm"
-VERSION="1.3.1"
+VERSION="1.3.2"
HOMEPAGE="https://wiki.lxde.org/en/Libfm"
-DOWNLOAD="https://downloads.sf.net/pcmanfm/libfm-1.3.1.tar.xz"
-MD5SUM="c15ecd2c9317e2c385cd3f046d0b61ba"
+DOWNLOAD="https://downloads.sf.net/pcmanfm/libfm-1.3.2.tar.xz"
+MD5SUM="c87a0ff41ae77825079b2f785ec0741e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lxmenu-data menu-cache"