summaryrefslogtreecommitdiffstats
path: root/desktop/lxpanel/lxpanel.SlackBuild
diff options
context:
space:
mode:
author Michael Wagner2010-09-21 02:25:50 +0200
committer Robby Workman2010-09-22 05:09:43 +0200
commit45004f6b09a941c80958701e2a1f03ab434e183f (patch)
tree7ee7cc2cd5304b0db441c176fba8ae609695e3c4 /desktop/lxpanel/lxpanel.SlackBuild
parent8b25516d25a9922407e92eb47a4def235f7591fd (diff)
downloadslackbuilds-45004f6b09a941c80958701e2a1f03ab434e183f.tar.gz
desktop/lxpanel: Updated for version 0.5.6.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/lxpanel/lxpanel.SlackBuild')
-rw-r--r--desktop/lxpanel/lxpanel.SlackBuild47
1 files changed, 30 insertions, 17 deletions
diff --git a/desktop/lxpanel/lxpanel.SlackBuild b/desktop/lxpanel/lxpanel.SlackBuild
index a0bb73a30d..bd2faf7883 100644
--- a/desktop/lxpanel/lxpanel.SlackBuild
+++ b/desktop/lxpanel/lxpanel.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-#
+#
# Slackware build script for lxpanel
# (C) 2008 Michael Wagner <lapinours@web.de>
# All rights reserved.
@@ -20,9 +20,11 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# modified by ponce <matteo.bernardini@sns.it>
PRGNAM=lxpanel
-VERSION=0.3.8.1
+VERSION=0.5.6
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,34 +63,38 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
-find . -perm 777 -exec chmod 755 {} \;
+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 {} \;
-# Patch config and panel.in to use programs included in Slackware
-patch -p0 < $CWD/config.diff
-patch -p0 < $CWD/panel.in.diff
+# fix a battery applet issue:
+patch -p1 < $CWD/battery-applet.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
--sysconfdir=/etc \
- --mandir=/usr/man
-
+ --enable-man \
+ --mandir=/usr/man \
+ --program-prefix= \
+ --program-suffix= \
+ --build=$ARCH-slackware-linux
+
make
-make install-strip DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-gzip -9 $PKG/usr/man/man1/*.1 > /dev/null
-
-# Don't overwrite the default configuration files.
-for i in config panels/panel; do
- mv $PKG/usr/share/$PRGNAM/profile/default/$i $PKG/usr/share/$PRGNAM/profile/default/$i.new
-done
+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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
@@ -100,4 +106,11 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
+# Patch panel to use programs included in Slackware and slight default config
+patch -p0 < $CWD/panel.patch
+# Don't overwrite the default configuration files.
+for i in config panels/panel; do
+ mv $PKG/usr/share/$PRGNAM/profile/default/$i $PKG/usr/share/$PRGNAM/profile/default/$i.new
+done
+
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}