summaryrefslogtreecommitdiff
path: root/system/spacefm
diff options
context:
space:
mode:
Diffstat (limited to 'system/spacefm')
-rw-r--r--system/spacefm/spacefm.SlackBuild19
-rw-r--r--system/spacefm/spacefm.info6
2 files changed, 17 insertions, 8 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
diff --git a/system/spacefm/spacefm.info b/system/spacefm/spacefm.info
index af5d2acdef..077e4b8960 100644
--- a/system/spacefm/spacefm.info
+++ b/system/spacefm/spacefm.info
@@ -1,8 +1,8 @@
PRGNAM="spacefm"
-VERSION="0.9.4"
+VERSION="1.0.3"
HOMEPAGE="http://ignorantguru.github.com/spacefm/"
-DOWNLOAD="http://sourceforge.net/projects/spacefm/files/spacefm-0.9.4.tar.xz"
-MD5SUM="0214e90d408e72baa5db19bab41f5eeb"
+DOWNLOAD="https://github.com/IgnorantGuru/spacefm/archive/1.0.3.tar.gz"
+MD5SUM="000e26dc414443f934e3838610cb6174"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""