George Hu pushed to branch main at Arch Linux / Packaging / Packages / klayout


Commits:
af046ccd by George Hu at 2025-10-04T16:47:30+08:00
Refactor package() functions

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -35,7 +35,7 @@ package_klayout() {
   cp -a bin-release/* "$pkgdir"/usr/lib/"$pkgname"/
 
   # Remove ELF executables and Python modules
-  rm -r "$pkgdir"/usr/lib/"$pkgname"/{strm*,klayout,pymod}
+  rm -r "$pkgdir"/usr/lib/"$pkgname"/{klayout,strm*,pymod}
 }
 
 package_python-klayout() {
@@ -45,10 +45,7 @@ package_python-klayout() {
   local site="$(python -c 'import site; print(site.getsitepackages()[0])')"
   install -d "$pkgdir/$site"
 
-  cd klayout-$pkgver
-  cp -a bin-release/pymod/klayout "$pkgdir/$site/"
-
   # pya is included for compatibility reasons, but will be deprecated in the 
future
   # See upstream: https://github.com/KLayout/klayout/issues/2072
-  cp -a bin-release/pymod/pya "$pkgdir/$site/"
+  cp -a klayout-$pkgver/bin-release/pymod/{klayout,pya} "$pkgdir/$site/"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/klayout/-/commit/af046ccdd4cfc4c16dcd55859619307c20b40633

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/klayout/-/commit/af046ccdd4cfc4c16dcd55859619307c20b40633
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to