summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2022-10-07 21:59:20 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-08 09:12:47 +0700
commit79012085d2973c965ec69661f7947231437c44ab (patch)
treed6dd94fc444b0eb50a8b7b6a663d0c417e85c1cb
parent31d3cccfc6e1c69ed00a55d35527e6a6d2536cb6 (diff)
downloadslackbuilds-79012085d2973c965ec69661f7947231437c44ab.tar.gz
python/tzdata: Updated for version 2022.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/tzdata/tzdata.SlackBuild15
-rw-r--r--python/tzdata/tzdata.info8
2 files changed, 9 insertions, 14 deletions
diff --git a/python/tzdata/tzdata.SlackBuild b/python/tzdata/tzdata.SlackBuild
index 81d7f4bb53..c0ce6798c5 100644
--- a/python/tzdata/tzdata.SlackBuild
+++ b/python/tzdata/tzdata.SlackBuild
@@ -22,11 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220929 46and2: Updated version, build process changed.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tzdata
SRCNAM=$(echo $PRGNAM | sed "s/python3-//")
-VERSION=${VERSION:-2022.2}
+VERSION=${VERSION:-2022.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,15 +82,8 @@ 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 {} \;
-#add basic setup.py
-cat << EOF > setup.py
-from setuptools import setup
-
-if __name__ == '__main__':
- setup()
-EOF
-
-python3 setup.py install --root=$PKG
+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 \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/python/tzdata/tzdata.info b/python/tzdata/tzdata.info
index 4f3e7a8b08..2efd7ccb84 100644
--- a/python/tzdata/tzdata.info
+++ b/python/tzdata/tzdata.info
@@ -1,10 +1,10 @@
PRGNAM="tzdata"
-VERSION="2022.2"
+VERSION="2022.4"
HOMEPAGE="https://github.com/python/tzdata"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/t/tzdata/tzdata-2022.2.tar.gz"
-MD5SUM="a284af5ea61eb7a90f651e0d7b8e9003"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/t/tzdata/tzdata-2022.4.tar.gz"
+MD5SUM="2aa7f908de327263a83006a40a3b1fd5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-build python3-installer wheel"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"