diff options
Diffstat (limited to 'libraries/libfm/libfm.SlackBuild')
-rw-r--r-- | libraries/libfm/libfm.SlackBuild | 39 |
1 files changed, 23 insertions, 16 deletions
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 |