mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
desktop/wbar: Updated for version 2.3.4 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0804f9fd91
commit
11b615ceb8
2 changed files with 16 additions and 14 deletions
|
@ -3,6 +3,7 @@
|
||||||
# Slackware build script for wbar
|
# Slackware build script for wbar
|
||||||
|
|
||||||
# Copyright 2010-2012 Binh Nguyen <binhvng@gmail.com>
|
# Copyright 2010-2012 Binh Nguyen <binhvng@gmail.com>
|
||||||
|
# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=wbar
|
PRGNAM=wbar
|
||||||
VERSION=${VERSION:-20120503svn_r51}
|
VERSION=${VERSION:-2.3.4}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -60,21 +61,21 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tgz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Use absolute path for pidof (from Salix)
|
# Use absolute path for pidof (from Salix)
|
||||||
sed -i 's|pidof|/sbin/pidof|g' src/config/Run.cc
|
sed -i 's|pidof|/sbin/pidof|g' src/config/Run.cc
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./autogen.sh \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
@ -89,10 +90,11 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
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
|
||||||
|
|
||||||
# Replace the heavily Debian-oriented default config file
|
# Replace the heavily Debian-oriented default config file
|
||||||
rm $PKG/etc/wbar.d/wbar.cfg
|
rm $PKG/etc/wbar.d/wbar.cfg
|
||||||
|
@ -104,7 +106,7 @@ mkdir -p $PKG/usr/share/pixmaps/wbar/slack
|
||||||
install -D -m 0644 icons/* $PKG/usr/share/pixmaps/wbar/slack
|
install -D -m 0644 icons/* $PKG/usr/share/pixmaps/wbar/slack
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO \
|
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
PRGNAM="wbar"
|
PRGNAM="wbar"
|
||||||
VERSION="20120503svn_r51"
|
VERSION="2.3.4"
|
||||||
HOMEPAGE="http://code.google.com/p/wbar/"
|
HOMEPAGE="http://code.google.com/p/wbar/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/sbosrc/wbar-20120503svn_r51.tar.gz \
|
DOWNLOAD="http://wbar.googlecode.com/files/wbar-2.3.4.tgz \
|
||||||
http://download.salixos.org/i486/13.37/source/xap/wbar/icons.tar.gz"
|
http://download.salixos.org/i486/13.37/source/xap/wbar/icons.tar.gz"
|
||||||
MD5SUM="151bad29de208942a03462010802619e \
|
MD5SUM="c1ac6b74138937a280904d1bac88115d \
|
||||||
358ea5ad109751ad64e78d440d0e4dca"
|
358ea5ad109751ad64e78d440d0e4dca"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="imlib2"
|
REQUIRES="imlib2"
|
||||||
MAINTAINER="Binh Nguyen"
|
MAINTAINER="Ryan P.C. McQuen"
|
||||||
EMAIL="binhvng@gmail.com"
|
EMAIL="ryan.q@linux.com"
|
||||||
|
|
Loading…
Reference in a new issue