diff options
Diffstat (limited to 'desktop/bar/bar.SlackBuild')
-rw-r--r-- | desktop/bar/bar.SlackBuild | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/desktop/bar/bar.SlackBuild b/desktop/bar/bar.SlackBuild index 4fc0013edd9c..d33d577ba2f7 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 |