python/python3-pykeepass: Update for 4.0.7

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
isaackwy 2024-02-29 12:27:41 -08:00 committed by Willy Sudiarto Raharjo
parent 31f105cbd4
commit 0f58fb36a2
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 21 deletions

View file

@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-pykeepass PRGNAM=python3-pykeepass
VERSION=${VERSION:-4.0.6} VERSION=${VERSION:-4.0.7}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -49,20 +49,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} 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 set -e
rm -rf $PKG rm -rf $PKG
@ -78,13 +64,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py install --root=$PKG export PYTHONPATH=/opt/python3.9/site-packages/
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG.rst LICENSE README.rst requirements*.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGELOG.rst LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="python3-pykeepass" PRGNAM="python3-pykeepass"
VERSION="4.0.6" VERSION="4.0.7"
HOMEPAGE="https://github.com/libkeepass/pykeepass" HOMEPAGE="https://github.com/libkeepass/pykeepass"
DOWNLOAD="https://github.com/libkeepass/pykeepass/archive/v4.0.6/pykeepass-4.0.6.tar.gz" DOWNLOAD="https://github.com/libkeepass/pykeepass/archive/v4.0.7/pykeepass-4.0.7.tar.gz"
MD5SUM="fd2114170c85b3d5a1610506ddf792f4" MD5SUM="5f5aa9ac74ada7779385d65dc375279e"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="argon2-cffi python3-construct python3-dateutil python3-lxml pycryptodomex" REQUIRES="argon2-cffi python3-construct python3-lxml python3-setuptools-opt pycryptodomex"
MAINTAINER="Isaac Yu" MAINTAINER="Isaac Yu"
EMAIL="isaacyu@protonmail.com" EMAIL="isaacyu@protonmail.com"