diff options
-rw-r--r-- | system/linkchecker/linkchecker.SlackBuild | 34 | ||||
-rw-r--r-- | system/linkchecker/linkchecker.info | 10 | ||||
-rw-r--r-- | system/linkchecker/slack-desc | 2 |
3 files changed, 15 insertions, 31 deletions
diff --git a/system/linkchecker/linkchecker.SlackBuild b/system/linkchecker/linkchecker.SlackBuild index a410787967..d35fb9ed05 100644 --- a/system/linkchecker/linkchecker.SlackBuild +++ b/system/linkchecker/linkchecker.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for linkchecker -# Copyright 2013-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2013-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=linkchecker SRCNAM=LinkChecker -VERSION=${VERSION:-9.3} -BUILD=${BUILD:-3} +VERSION=${VERSION:-10.4.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -51,20 +48,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -80,11 +63,11 @@ 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 {} \; -# Fix python requests version check -# https://github.com/wummel/linkchecker/commit/c2ce810c3fb00b895a841a7be6b2e78c64e7b042 -patch -p1 < $CWD/fix-python-requests.patch +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -python2 setup.py install --root=$PKG +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -98,9 +81,10 @@ mkdir $PKG/usr/share/pixmaps cp $CWD/logo48x48.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING *.rst doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mv $PKG/usr/share/linkchecker/examples/ $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/linkchecker mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/linkchecker/linkchecker.info b/system/linkchecker/linkchecker.info index ee42d2ffc2..ed1555a1e5 100644 --- a/system/linkchecker/linkchecker.info +++ b/system/linkchecker/linkchecker.info @@ -1,10 +1,10 @@ PRGNAM="linkchecker" -VERSION="9.3" -HOMEPAGE="http://wummel.github.io/linkchecker/" -DOWNLOAD="https://pypi.python.org/packages/source/L/LinkChecker/LinkChecker-9.3.tar.gz" -MD5SUM="d7ba7ff04715022af5574b4e6cccbd27" +VERSION="10.4.0" +HOMEPAGE="https://linkchecker.github.io/linkchecker/" +DOWNLOAD="https://files.pythonhosted.org/packages/d2/ff/f2a00bf17165fc470d6d02eb191002902a40483a29b474672421f3bd637e/LinkChecker-10.4.0.tar.gz" +MD5SUM="eefc0fa6f48cd81c8de20f6bb232c1c5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="qt4" +REQUIRES="BeautifulSoup4 python3-dnspython python3-setuptools-scm-opt python3-hatch_vcs" MAINTAINER="Willy Sudiarto Raharjo" EMAIL="willysr@slackbuilds.org" diff --git a/system/linkchecker/slack-desc b/system/linkchecker/slack-desc index 4d4493867a..cb4b525bbb 100644 --- a/system/linkchecker/slack-desc +++ b/system/linkchecker/slack-desc @@ -12,7 +12,7 @@ linkchecker: LinkChecker is a free, GPL licensed website validator. linkchecker: LinkChecker checks links in web documents or full websites. linkchecker: linkchecker: -linkchecker: Project URL: http://wummel.github.io/linkchecker/ +linkchecker: Project URL: https://linkchecker.github.io/linkchecker/ linkchecker: linkchecker: linkchecker: |