[arch-commits] Commit in libsigc++/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu May 27 16:39:21 UTC 2021


    Date: Thursday, May 27, 2021 @ 16:39:20
  Author: heftig
Revision: 416560

minor improvements

Modified:
  libsigc++/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-27 15:49:43 UTC (rev 416559)
+++ PKGBUILD	2021-05-27 16:39:20 UTC (rev 416560)
@@ -11,7 +11,7 @@
 arch=(x86_64)
 license=(LGPL)
 depends=(gcc-libs)
-makedepends=(git mm-common meson)
+makedepends=(git meson mm-common)
 options=(!emptydirs)
 _commit=1b47767cfac93c902d413874a6257d5934712ea8  # tags/2.10.7^0
 source=("git+https://github.com/libsigcplusplus/libsigcplusplus#commit=$_commit")
@@ -38,23 +38,24 @@
 # Do not remove the space before the () or commitpkg will
 # accidentally to run this function on the system (!!!) 
 package_libsigc++ () {
-  provides=("libsigc++2.0=${pkgver}")
-  replaces=('libsigc++2.0')
-  conflicts=('libsigc++2.0')
+  provides=("libsigc++2.0=$pkgver" libsigc-2.0.so)
+  replaces=(libsigc++2.0)
+  conflicts=(libsigc++2.0)
 
   meson install -C build --destdir "$pkgdir"
 
+  # Split -docs
   mkdir -p docs/usr/share
-  mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share
+  mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
 }
 
 package_libsigc++-docs() {
   pkgdesc+=" (documentation)"
   depends=()
-  provides=("libsigc++2.0-docs=${pkgver}")
-  replaces=('libsigc++2.0-docs')
-  conflicts=('libsigc++2.0-docs')
+  provides=("libsigc++2.0-docs=$pkgver")
+  replaces=(libsigc++2.0-docs)
+  conflicts=(libsigc++2.0-docs)
   options=(!strip)
 
-  mv docs/* "$pkgdir"
+  mv -t "$pkgdir" docs/*
 }



More information about the arch-commits mailing list