summaryrefslogtreecommitdiffstats
path: root/desktop/xfce4-battery-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/xfce4-battery-plugin')
-rw-r--r--desktop/xfce4-battery-plugin/README4
-rw-r--r--desktop/xfce4-battery-plugin/xfce4-battery-plugin.SlackBuild23
-rw-r--r--desktop/xfce4-battery-plugin/xfce4-battery-plugin.info8
3 files changed, 23 insertions, 12 deletions
diff --git a/desktop/xfce4-battery-plugin/README b/desktop/xfce4-battery-plugin/README
index b0ba834e44..8a0a176174 100644
--- a/desktop/xfce4-battery-plugin/README
+++ b/desktop/xfce4-battery-plugin/README
@@ -1,3 +1,3 @@
-Battery monitor panel plugin for XFce4.
+Battery-plugin is a battery monitor panel plugin for Xfce4,
+compatible with APM and ACPI, for Linux and BSDs.
-Battery Icon borrowed from KDE :-)
diff --git a/desktop/xfce4-battery-plugin/xfce4-battery-plugin.SlackBuild b/desktop/xfce4-battery-plugin/xfce4-battery-plugin.SlackBuild
index 115f341541..ea0fd28629 100644
--- a/desktop/xfce4-battery-plugin/xfce4-battery-plugin.SlackBuild
+++ b/desktop/xfce4-battery-plugin/xfce4-battery-plugin.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for xfce4-battery-plugin
-# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2024 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=xfce4-battery-plugin
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -78,6 +88,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-debug \
--build=$ARCH-slackware-linux
make
@@ -92,7 +103,7 @@ find $PKG -name perllocal.pod \
| xargs rm -f
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -100,4 +111,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/xfce4-battery-plugin/xfce4-battery-plugin.info b/desktop/xfce4-battery-plugin/xfce4-battery-plugin.info
index 5ba3cba890..d3d71ead9d 100644
--- a/desktop/xfce4-battery-plugin/xfce4-battery-plugin.info
+++ b/desktop/xfce4-battery-plugin/xfce4-battery-plugin.info
@@ -1,10 +1,10 @@
PRGNAM="xfce4-battery-plugin"
-VERSION="1.1.0"
+VERSION="1.1.5"
HOMEPAGE="https://goodies.xfce.org/"
-DOWNLOAD="https://archive.xfce.org/src/panel-plugins/xfce4-battery-plugin/1.1/xfce4-battery-plugin-1.1.0.tar.bz2"
-MD5SUM="f78d8d0cc13d40753a207a836869b953"
+DOWNLOAD="https://archive.xfce.org/src/panel-plugins/xfce4-battery-plugin/1.1/xfce4-battery-plugin-1.1.5.tar.bz2"
+MD5SUM="45a64fe9b81b1374ed765a931747dcea"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
-EMAIL="d.zlatanidis@gmail.com"
+EMAIL="dslackw@gmail.com"