aboutsummaryrefslogtreecommitdiff
path: root/python/dfdatetime/dfdatetime.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/dfdatetime/dfdatetime.SlackBuild')
-rw-r--r--python/dfdatetime/dfdatetime.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/dfdatetime/dfdatetime.SlackBuild b/python/dfdatetime/dfdatetime.SlackBuild
index 8c878b19ee9b4..2bf6a8f387c7c 100644
--- a/python/dfdatetime/dfdatetime.SlackBuild
+++ b/python/dfdatetime/dfdatetime.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for dfdatetime
-# Copyright 2016-2019 Barry Grundy <bgrundy[at]linuxleo.com>
+# Copyright 2016-2022 Barry Grundy <bgrundy[at]linuxleo.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,12 +21,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# Updated to v20190116 March 2019
+# Updated to v20220131 May 2022
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dfdatetime
-VERSION=${VERSION:-20190116}
+VERSION=${VERSION:-20220131}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,13 +80,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 {} \;
-python setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
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/$PRGNAM-$VERSION
-cp -a README LICENSE AUTHORS PKG-INFO ACKNOWLEDGEMENTS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README LICENSE AUTHORS PKG-INFO ACKNOWLEDGEMENTS docs/ $PKG/usr/doc/$PRGNAM-$VERSION
+
# Remove duplicated docs in /usr/share/doc
rm -rf $PKG/usr/share
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild