mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/monty: Updated for version 2024.5.15.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c42578ba37
commit
5c127f8fd8
2 changed files with 13 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for monty
|
# Slackware build script for monty
|
||||||
|
|
||||||
# Copyright 2014-2022 Dimitris Zlatanidis Orestiada, Greece
|
# Copyright 2014-2024 Dimitris Zlatanidis Orestiada, Greece
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=monty
|
PRGNAM=monty
|
||||||
VERSION=${VERSION:-2022.9.9}
|
VERSION=${VERSION:-2024.5.15}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -79,13 +79,17 @@ 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
|
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
||||||
|
export PYTHONPATH=/opt/python$PYVER/site-packages
|
||||||
|
|
||||||
|
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 \
|
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 LICENSE.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a LICENSE.rst PKG-INFO README.md $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
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="monty"
|
PRGNAM="monty"
|
||||||
VERSION="2022.9.9"
|
VERSION="2024.5.15"
|
||||||
HOMEPAGE="https://github.com/materialsvirtuallab/monty"
|
HOMEPAGE="https://github.com/materialsvirtuallab/monty"
|
||||||
DOWNLOAD="https://files.pythonhosted.org/packages/3d/23/c8894953f21267a0f6ab6360665aef137562c112284ce68a8803f6ec9436/monty-2022.9.9.tar.gz"
|
DOWNLOAD="https://files.pythonhosted.org/packages/ae/35/f47e80a6082b27475db29bbf485fb6b214e254db64c5866e1665cf9e6600/monty-2024.5.15.tar.gz"
|
||||||
MD5SUM="daef8fc3b65453eb7027816bf6466894"
|
MD5SUM="c582c55302876fcfdf0cc5f6e29d3963"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES="python3-setuptools-opt"
|
||||||
MAINTAINER="Dimitris Zlatanidis"
|
MAINTAINER="Dimitris Zlatanidis"
|
||||||
EMAIL="d.zlatanidis@gmail.com"
|
EMAIL="dslackw@gmail.com"
|
||||||
|
|
Loading…
Reference in a new issue