summaryrefslogtreecommitdiffstats
path: root/source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild')
-rwxr-xr-xsource/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild b/source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild
index 2ba3a0b56..6d0fa3686 100755
--- a/source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild
+++ b/source/n/mobile-broadband-provider-info/mobile-broadband-provider-info.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for mobile-broadband-provider-info
# Copyright 2010, 2011, 2015 Robby Workman, Tuscaloosa, Alabama, USA
+# Copyright 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +29,9 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mobile-broadband-provider-info
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
+
+DATE=$(echo $VERSION | cut -f 1 -d _)
# Automatically determine the architecture we're building on:
MARCH=$( uname -m )
@@ -46,7 +49,7 @@ fi
# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ echo "$PKGNAM-$DATE-$ARCH-$BUILD.txz"
exit 0
fi
@@ -104,7 +107,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
+ --docdir=/usr/doc/$PKGNAM-$DATE \
--build=$TARGET || exit 1
make || exit 1
@@ -113,14 +116,14 @@ make install DESTDIR=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PKGNAM-$DATE
cp -a \
COPYING* ChangeLog NEWS README* \
- $PKG/usr/doc/$PKGNAM-$VERSION
+ $PKG/usr/doc/$PKGNAM-$DATE
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
+/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$DATE-$ARCH-$BUILD.txz