summaryrefslogtreecommitdiff
path: root/system/worker/worker.SlackBuild
diff options
context:
space:
mode:
authorAndrey Maraev <andrew.maraev60@yandex.ru>2012-06-25 21:17:52 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-25 21:17:52 -0400
commitab727e887670c2b359fb6bb66dabd3bd3e91715d (patch)
treec3806907635ea62c82c09f7202f0c0eb5aa9a287 /system/worker/worker.SlackBuild
parent0620d4d5a0999d0165b0a6f3ed09c1a997dec44f (diff)
downloadslackbuilds-ab727e887670c2b359fb6bb66dabd3bd3e91715d.tar.gz
system/worker: Updated for version 2.19.3.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/worker/worker.SlackBuild')
-rw-r--r--system/worker/worker.SlackBuild35
1 files changed, 19 insertions, 16 deletions
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}