[arch-commits] Commit in podman-compose/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri May 6 18:30:33 UTC 2022


    Date: Friday, May 6, 2022 @ 18:30:33
  Author: dvzrv
Revision: 1196031

upgpkg: podman-compose 1.0.3-2: Rebuild to add dependency on podman-dnsname.

Add podman-dnsname to depends (https://bugs.archlinux.org/task/74101).
Remove unneeded quotes and curly braces.
Switch to PEP517.

Modified:
  podman-compose/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-06 18:22:43 UTC (rev 1196030)
+++ PKGBUILD	2022-05-06 18:30:33 UTC (rev 1196031)
@@ -3,14 +3,14 @@
 
 pkgname=podman-compose
 pkgver=1.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc='A script to run docker-compose.yml using podman'
 arch=(any)
 url='https://github.com/containers/podman-compose'
 license=(GPL2)
-depends=(podman python-dotenv python-yaml)
-makedepends=(python-setuptools)
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+depends=(podman podman-dnsname python-dotenv python-yaml)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
 sha512sums=('54ee61e6f9cd946b54eed07285e13bec88bc3d718e55915422b563a4d9e79e4e087cd8040adb16aa2fc4546f536cc5b7e31b3e87295cb7c8281c9db61e6fbc71')
 b2sums=('d0369a3070b2485efb778547bfbeb732b8ed9e7ba9092a976f89eb1d89c1ad4c3a1b849193d62ef9f7eebe82813245918b1f385cf4dbf71ee7a7f293461ce44d')
 
@@ -17,15 +17,15 @@
 build() {
   cd $pkgname-$pkgver
 
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd $pkgname-$pkgver
 
-  python setup.py install --root="$pkgdir" --optimize=1
-  find examples -type f -exec install -vDm 644 {} "${pkgdir}/usr/share/doc/${pkgname}/"{} \;
-  install -vDm 644 {README.md,docs/*} -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  find examples -type f -exec install -vDm 644 {} "$pkgdir/usr/share/doc/$pkgname/"{} \;
+  install -vDm 644 {README.md,docs/*} -t "$pkgdir/usr/share/doc/$pkgname/"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list