diff --git a/libraries/pyPEG2/README b/libraries/pyPEG2/README index 532846343a..9963fa41bb 100644 --- a/libraries/pyPEG2/README +++ b/libraries/pyPEG2/README @@ -5,7 +5,8 @@ for Python version 2.7 and 3.x. It is based on Parsing Expression Grammar (PEG). With pyPEG you can parse many formal languages in a very easy way. -NOTE: to build pyPEG2 with python3 run the slackbuild with option -PYTHON3=yes. - # PYTHON3=yes ./pyPEG2.SlackBuild +NOTE: to build pyPEG2 without python3 run the slackbuild with option +PYTHON3=no. + # PYTHON3=no ./pyPEG2.SlackBuild +git: https://gitea.pep.foundation/fdik/pypeg2 diff --git a/libraries/pyPEG2/pyPEG2.SlackBuild b/libraries/pyPEG2/pyPEG2.SlackBuild index 13fd1ec821..d3abe4d92b 100644 --- a/libraries/pyPEG2/pyPEG2.SlackBuild +++ b/libraries/pyPEG2/pyPEG2.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pyPEG2 -VERSION=${VERSION:-2.15.2} +VERSION=${VERSION:-20211118_4dd9d69} BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,6 +38,8 @@ if [ -z "$ARCH" ]; then esac fi +SRCNAM=pypeg2 + # 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. @@ -69,9 +71,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -82,8 +84,8 @@ find -L . \ python setup.py build python setup.py install --root=$PKG -# Build pyPEG2 with python3. Default is no. -if [ "${PYTHON3:-no}" == "yes" ]; then +# Build pyPEG2 with python3. Default is yes. +if [ "${PYTHON3:-yes}" == "yes" ]; then python3 setup.py build python3 setup.py install --root=$PKG fi @@ -92,7 +94,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp CHANGES.txt LICENSE.txt PKG-INFO README.txt TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp CHANGES.txt LICENSE.txt README.md TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/pyPEG2/pyPEG2.info b/libraries/pyPEG2/pyPEG2.info index 5b32023ed1..947e481e84 100644 --- a/libraries/pyPEG2/pyPEG2.info +++ b/libraries/pyPEG2/pyPEG2.info @@ -1,8 +1,8 @@ PRGNAM="pyPEG2" -VERSION="2.15.2" +VERSION="20211118_4dd9d69" HOMEPAGE="https://fdik.org/pyPEG/" -DOWNLOAD="https://fdik.org/pyPEG2/pyPEG2.tar.gz" -MD5SUM="2ff44bc843c61ccd3951ef66a9e4a2b0" +DOWNLOAD="https://ponce.cc/slackware/sources/repo/pypeg2-20211118_4dd9d69.tar.xz" +MD5SUM="7a458ccebf2859523462a9f6302d3f23" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="lxml"