From 0b51634b6704d060109fea7b90e1021b101a3921 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Tue, 24 Jun 2014 08:57:40 +0700 Subject: desktop/bar: Add upstream patch. Signed-off-by: Willy Sudiarto Raharjo --- desktop/bar/bar.SlackBuild | 18 +- desktop/bar/patches/bar-1.0_970332a.patch | 351 +++++++++++++++++++++++++++ desktop/bar/patches/bar-monitor-option.patch | 300 ----------------------- desktop/bar/slack-desc | 2 +- 4 files changed, 361 insertions(+), 310 deletions(-) create mode 100644 desktop/bar/patches/bar-1.0_970332a.patch delete mode 100644 desktop/bar/patches/bar-monitor-option.patch (limited to 'desktop/bar') diff --git a/desktop/bar/bar.SlackBuild b/desktop/bar/bar.SlackBuild index 71971ed2a26c..4fc0013edd9c 100644 --- a/desktop/bar/bar.SlackBuild +++ b/desktop/bar/bar.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=bar VERSION=${VERSION:-1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -61,26 +61,26 @@ 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 + 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 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# add monitor option for ordering and selective inclusion -patch -p1 < $CWD/patches/bar-monitor-option.patch - +# 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 +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 diff --git a/desktop/bar/patches/bar-1.0_970332a.patch b/desktop/bar/patches/bar-1.0_970332a.patch new file mode 100644 index 000000000000..39024aeb60d5 --- /dev/null +++ b/desktop/bar/patches/bar-1.0_970332a.patch @@ -0,0 +1,351 @@ +diff --git a/README.pod b/README.pod +index 565f188..f021f3a 100644 +--- a/README.pod ++++ b/README.pod +@@ -4,7 +4,7 @@ bar - bar ain't recursive + + =head1 SYNOPSIS + +-I [-h | -g IBIB<+>I | -b | -d | -f I | -p | -u I | -B I | -F I] ++I [-h | -g IBIB<+>IB<+>I | -b | -d | -f I | -p | -u I | -B I | -F I] + + =head1 DESCRIPTION + +@@ -18,9 +18,9 @@ B is a lightweight bar entirely based on XCB. Provides full UTF-8 support, + + Display the help and exit. + +-=item B<-g> IBIB<+>I ++=item B<-g> IBIB<+>IB<+>I + +-Set the window geometry. If a parameter is omitted it's filled with the default value. ++Set the window geometry. If a parameter is omitted it's filled with the default value. If the I parameter is specified along with the B<-b> switch then the position is relative to the bottom of the screen. + + =item B<-b> + +@@ -86,12 +86,14 @@ Set the text foreground color. The parameter I can be I<-> or a color in + + Set the text underline color. The parameter I can be I<-> or a color in one of the formats mentioned before. The special value I<-> resets the color to the default one. + +-=item B:I: ++=item BI