summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/worker/doinst.sh3
-rw-r--r--system/worker/slack-desc16
-rw-r--r--system/worker/worker.SlackBuild35
-rw-r--r--system/worker/worker.info12
4 files changed, 36 insertions, 30 deletions
diff --git a/system/worker/doinst.sh b/system/worker/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/system/worker/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/system/worker/slack-desc b/system/worker/slack-desc
index 68289a4754..5213e4b4e1 100644
--- a/system/worker/slack-desc
+++ b/system/worker/slack-desc
@@ -3,17 +3,17 @@
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
+# customary to leave one space after the ':' except on otherwise blank lines.
- |-----handy-ruler------------------------------------------------------|
-worker: worker (file manager for X-Window)
+ |-----handy-ruler------------------------------------------------------|
+worker: worker (double panel file manager)
worker:
-worker: Worker is a file manager for X-Windows on UNIX-like systems.
-worker: The directoriess and files are shown in two independent panels
-worker: (similar to MidnightCommander). Worker is very similar to
-worker: 'directory opus' on Amiga.
+worker: Worker is a graphical file manager on xlib
+worker: The directories and files are shown
+worker: in two independent panels
+worker: (like krusader and midnight commander).
worker:
-worker: Homepage: http://www.boomerangsworld.de/worker/
worker:
+worker: HomePage - http://www.boomerangsworld.de/worker
worker:
worker:
diff --git a/system/worker/worker.SlackBuild b/system/worker/worker.SlackBuild
index 7a1204689f..e80f73c2c6 100644
--- a/system/worker/worker.SlackBuild
+++ b/system/worker/worker.SlackBuild
@@ -1,5 +1,4 @@
-#!/bin/bash
-#
+#!/bin/sh
# This script creates a Slackware package from the worker source
# Copyright 2006,2009 Robby Workman, Northport, Alabama, USA
@@ -24,18 +23,17 @@
# Modified by CJ Johnson
# Modified by the SlackBuilds.org project
+# Modified by Andrey Maraev <andrew.maraev60@yandex.ru>
PRGNAM=worker
-VERSION=2.13.1
+VERSION=${VERSION:-2.19.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -51,9 +49,6 @@ if [ "$ARCH" = "i486" ]; then
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "s390" ]; then
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
@@ -66,12 +61,16 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+rw,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -80,25 +79,29 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-xft \
--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
-gzip -9 $PKG/usr/man/man?/*
-gzip -9 $PKG/usr/man/fr/man?/*
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS README_LARGEFILES \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ AUTHORS COPYING ChangeLog INSTALL NEWS README README_LARGEFILES THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/worker/worker.info b/system/worker/worker.info
index f1e787b23d..82cbd03a75 100644
--- a/system/worker/worker.info
+++ b/system/worker/worker.info
@@ -1,10 +1,10 @@
PRGNAM="worker"
-VERSION="2.13.1"
+VERSION="2.19.3"
HOMEPAGE="http://www.boomerangsworld.de/worker/"
-DOWNLOAD="http://www.boomerangsworld.de/cms/worker/downloads/worker-2.13.1.tar.bz2"
-MD5SUM="cfc315939dbc0dbe770be756cbd4cf01"
+DOWNLOAD="http://www.boomerangsworld.de/cms/worker/downloads/worker-2.19.3.tar.bz2"
+MD5SUM="0a1b3fccad633febe94ab770da878b58"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-MAINTAINER="CJ Johnson"
-EMAIL="clavius@gmail.com"
-APPROVED="rworkman,Erik Hanson"
+MAINTAINER="Andrey Maraev"
+EMAIL="andrew.maraev60@yandex.ru"
+APPROVED="dsomero"