From 75a47184f08daa998ff78587e6d3293ea11de4a0 Mon Sep 17 00:00:00 2001 From: Guoyi Zhang Date: Sat, 8 Feb 2025 19:06:57 +1100 Subject: [PATCH] python-pmw: fix the distutils --- BioArchLinux/python-pmw/ChangeLog | 11 ----------- BioArchLinux/python-pmw/LICENSE.txt | 21 --------------------- BioArchLinux/python-pmw/PKGBUILD | 10 +++------- BioArchLinux/python-pmw/lilac.py | 9 --------- BioArchLinux/python-pmw/lilac.yaml | 4 ++++ 5 files changed, 7 insertions(+), 48 deletions(-) delete mode 100644 BioArchLinux/python-pmw/ChangeLog delete mode 100644 BioArchLinux/python-pmw/LICENSE.txt delete mode 100644 BioArchLinux/python-pmw/lilac.py diff --git a/BioArchLinux/python-pmw/ChangeLog b/BioArchLinux/python-pmw/ChangeLog deleted file mode 100644 index 6db84c61e9..0000000000 --- a/BioArchLinux/python-pmw/ChangeLog +++ /dev/null @@ -1,11 +0,0 @@ -2.0.1-2: -python3.5 rebuild - -2.0.1-1: -upstream update - -2.0.0-2: -rebuild according to FS#42100 - -2.0.0-1: -upstream update diff --git a/BioArchLinux/python-pmw/LICENSE.txt b/BioArchLinux/python-pmw/LICENSE.txt deleted file mode 100644 index de9a582603..0000000000 --- a/BioArchLinux/python-pmw/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2007,2008 David M. Cooke -Copyright (c) 2009,2010 Francesc Alted -Copyright (c) 2011- See AUTHORS.txt - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/BioArchLinux/python-pmw/PKGBUILD b/BioArchLinux/python-pmw/PKGBUILD index 97db703359..558972b5bd 100644 --- a/BioArchLinux/python-pmw/PKGBUILD +++ b/BioArchLinux/python-pmw/PKGBUILD @@ -10,12 +10,9 @@ pkgdesc="A toolkit for high-level compound widgets in Python using the Tkinter m arch=('any') url="http://pmw.sourceforge.net/" license=('MIT') -depends=('python' 'tk') -source=(${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/P/Pmw/Pmw-${pkgver}.tar.gz - "LICENSE.txt") -md5sums=('8b816709e4f1d486ba47f1dc787066ee' - '28b047a148c1780eddcf4bed6b150123') -changelog="ChangeLog" +depends=('python' 'tk' 'python-distutils-extra') +source=(${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/P/Pmw/Pmw-${pkgver}.tar.gz) +md5sums=('8b816709e4f1d486ba47f1dc787066ee') build() { cd "Pmw-${pkgver}" @@ -25,5 +22,4 @@ build() { package() { cd "Pmw-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" - install -Dm644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/BioArchLinux/python-pmw/lilac.py b/BioArchLinux/python-pmw/lilac.py deleted file mode 100644 index 3493a51aea..0000000000 --- a/BioArchLinux/python-pmw/lilac.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python3 - -from lilaclib import * - -def pre_build(): - update_pkgver_and_pkgrel(_G.newver.lstrip('v')) - -def post_build(): - git_pkgbuild_commit() diff --git a/BioArchLinux/python-pmw/lilac.yaml b/BioArchLinux/python-pmw/lilac.yaml index d525dcad3e..a0f7dad15c 100644 --- a/BioArchLinux/python-pmw/lilac.yaml +++ b/BioArchLinux/python-pmw/lilac.yaml @@ -2,6 +2,10 @@ maintainers: - github: starsareintherose email: kuoi@bioarchlinux.org build_prefix: extra-x86_64 +pre_build_script: | + update_pkgver_and_pkgrel(_G.newver) +post_build_script: | + git_pkgbuild_commit() update_on: - source: pypi pypi: Pmw