office/python3-xlsx2csv: Updated for version 0.8.1.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2023-08-31 09:49:56 -06:00 committed by Willy Sudiarto Raharjo
parent fbf3d6947e
commit d915254c2f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 14 additions and 7 deletions

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-xlsx2csv PRGNAM=python3-xlsx2csv
SRCNAM=${PRGNAM#python3-*} SRCNAM=${PRGNAM#python3-*}
VERSION=${VERSION:-0.7.8} VERSION=${VERSION:-0.8.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -57,6 +57,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
@ -77,7 +80,11 @@ 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 # use newer setuptools
export PYTHONPATH=/opt/python3.9/site-packages/
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
make -C man make -C man
mkdir -p $PKG/usr/man/man1 mkdir -p $PKG/usr/man/man1
@ -90,7 +97,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING LICENSE.txt \ cp -a CHANGELOG LICENSE.txt PKG-INFO README.md \
$PKG/usr/doc/$PRGNAM-$VERSION $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

View file

@ -1,10 +1,10 @@
PRGNAM="python3-xlsx2csv" PRGNAM="python3-xlsx2csv"
VERSION="0.7.8" VERSION="0.8.1"
HOMEPAGE="https://github.com/dilshod/xlsx2csv" HOMEPAGE="https://github.com/dilshod/xlsx2csv"
DOWNLOAD="https://files.pythonhosted.org/packages/source/x/xlsx2csv/xlsx2csv-0.7.8.tar.gz" DOWNLOAD="https://files.pythonhosted.org/packages/source/x/xlsx2csv/xlsx2csv-0.8.1.tar.gz"
MD5SUM="569a3d7eee88e1a82cf13c1e2a8a5a69" MD5SUM="21e5723f1ef841f919c95308bd32ccf8"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES="python3-setuptools-opt"
MAINTAINER="fourtysixandtwo" MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net" EMAIL="fourtysixandtwo@sliderr.net"