[arch-commits] Commit in python-hsluv/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Jun 7 13:27:16 UTC 2022


    Date: Tuesday, June 7, 2022 @ 13:27:16
  Author: dvzrv
Revision: 1228479

archrelease: copy trunk to community-any

Added:
  python-hsluv/repos/community-any/PKGBUILD
    (from rev 1228478, python-hsluv/trunk/PKGBUILD)
Deleted:
  python-hsluv/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 34 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-07 13:26:53 UTC (rev 1228478)
+++ PKGBUILD	2022-06-07 13:27:16 UTC (rev 1228479)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=hsluv
-pkgname=python-hsluv
-pkgver=5.0.2
-pkgrel=2
-pkgdesc="A Python implementation of HSLuv (revision 4)"
-arch=('any')
-url="https://github.com/hsluv/hsluv-python"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('0ad9ccb09412ae27f8ba6a160570b517939615eed19fe50f45a8def8ce99943752703c6c3ad2804d8abbafb680488070b48df50b275ebda742edd71f63ca457e')
-b2sums=('287774633764fdd8f030a1f447e71ba5e6f99b30219905a8dd2d7632be7e99331244f765da1ded081f6c7250e94e8aa169a30160248221dee18a018118a2955b')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-hsluv/repos/community-any/PKGBUILD (from rev 1228478, python-hsluv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-07 13:27:16 UTC (rev 1228479)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=hsluv
+pkgname=python-hsluv
+pkgver=5.0.3
+pkgrel=1
+pkgdesc="A Python implementation of HSLuv (revision 4)"
+arch=(any)
+url="https://github.com/hsluv/hsluv-python"
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('18fef949ca1e6607f5053340f368679224f5870590c95de7afa750c3e6bde62dd467b538e7264dd5854918024e06511fe314eedb52882dc09fa99a1fc25d3a59')
+b2sums=('2f2681a820c4253c2a443f448bf607fd0feaab3e183dfe53577f27a727b1142ccc4d7dd3827e1cc57bcfdffc49ce118413619cbfac2d6cbca25d1915c1df2fda')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  export PYTHONPATH="build:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list