summaryrefslogtreecommitdiff
path: root/system/spacefm/spacefm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/spacefm/spacefm.SlackBuild')
-rw-r--r--system/spacefm/spacefm.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/system/spacefm/spacefm.SlackBuild b/system/spacefm/spacefm.SlackBuild
index f3b636d538..d5457e9d99 100644
--- a/system/spacefm/spacefm.SlackBuild
+++ b/system/spacefm/spacefm.SlackBuild
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=spacefm
-VERSION=${VERSION:-0.9.4}
+VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,20 +56,28 @@ else
LIBDIRSUFFIX=""
fi
+## detect video thumbnail support, requires ffmpegthumbnailer:
+## http://slackbuilds.org/apps/ffmpegthumbnailer/
+if pkg-config --exists libffmpegthumbnailer; then VIDEO_THUMBNAIL_FLAG=""; else VIDEO_THUMBNAIL_FLAG="--disable-video-thumbnails"; fi
+
set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+if [ -e $CWD/$VERSION.tar.gz ]; then
+ tar xvf $CWD/$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -83,12 +91,13 @@ CFLAGS="$SLKCFLAGS" \
--localedir=/usr/share/locale \
--disable-pixmaps \
--disable-static \
+ $VIDEO_THUMBNAIL_FLAG \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION