summaryrefslogtreecommitdiff
path: root/desktop/bar/bar.SlackBuild
diff options
context:
space:
mode:
authorJohn Vogel <jvogel4@stny.rr.com>2015-06-24 23:28:49 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-06-24 23:29:29 +0700
commitbad41dc34d99be0fb1e9acbe5e1f5d08e1671107 (patch)
tree3195bdecbcd0266ac3cb8b4167c823688755886f /desktop/bar/bar.SlackBuild
parenteee8dfde0ca69d3ec60e8096f43b3057a297d7bb (diff)
downloadslackbuilds-bad41dc34d99be0fb1e9acbe5e1f5d08e1671107.tar.gz
desktop/bar: Updated for version 1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/bar/bar.SlackBuild')
-rw-r--r--desktop/bar/bar.SlackBuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/desktop/bar/bar.SlackBuild b/desktop/bar/bar.SlackBuild
index 4fc0013edd..d33d577ba2 100644
--- a/desktop/bar/bar.SlackBuild
+++ b/desktop/bar/bar.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bar
-VERSION=${VERSION:-1.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,12 +60,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-if [ ! -f $CWD/$PRGNAM-$VERSION.tar.gz ]; then
- if [ -f $CWD/v$VERSION.tar.gz ]; then
- mv $CWD/v$VERSION.tar.gz $CWD/$PRGNAM-$VERSION.tar.gz
- fi
-fi
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+
+tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -74,18 +70,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# patch to commit 970332a
-patch -p1 < $CWD/patches/bar-1.0_970332a.patch
-# adjust CFLAGS in Makefile to accept SLKCFLAGS
-patch -p1 < $CWD/patches/bar-Makefile-CFLAGS.patch
-
CFLAGS="$SLKCFLAGS" \
make
make doc
-install -D -m 755 bar $PKG/usr/bin/bar
-install -D -m 644 bar.1 $PKG/usr/man/man1/bar.1
-
-gzip -9 $PKG/usr/man/man1/bar.1
+install -D -m 755 lemonbar $PKG/usr/bin/lemonbar
+ln -s lemonbar $PKG/usr/bin/bar
+install -D -m 644 lemonbar.1 $PKG/usr/man/man1/lemonbar.1
+gzip -9 $PKG/usr/man/man1/lemonbar.1
+ln -s lemonbar.1.gz $PKG/usr/man/man1/bar.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.pod $PKG/usr/doc/$PRGNAM-$VERSION