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

Dan Printzell wild at archlinux.org
Thu Nov 7 19:29:22 UTC 2019


    Date: Thursday, November 7, 2019 @ 19:29:22
  Author: wild
Revision: 524531

upgpkg: glibd 2.1.0-5

Rebuilt against new ldc. Add meson building fixes

Modified:
  glibd/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-07 19:29:00 UTC (rev 524530)
+++ PKGBUILD	2019-11-07 19:29:22 UTC (rev 524531)
@@ -4,7 +4,7 @@
 pkgname=glibd
 _pkgname=GlibD
 pkgver=2.1.0
-pkgrel=4
+pkgrel=5
 pkgdesc='D bindings for the GLib C Utility Library'
 arch=('x86_64')
 url='https://github.com/gtkd-developers/GlibD'
@@ -13,6 +13,14 @@
 makedepends=('meson' 'ldc' 'gobject-introspection' 'gir-to-d')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha512sums=('2e00933e666f213ef5e38d3df5695966a76cdac067603e39d09f7ac8a5a4cab48ea498044de1d9daa2920609b7f8d6d5c090a666a6507a563bb896be2cc8c32f')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # Meson forgot to add this flag when creating a shared library.
+  sed -i "/soversion:/a link_args: '-shared'," meson.build
+}
+
 build() {
   mkdir -p $_pkgname-$pkgver/build
   cd $_pkgname-$pkgver/build
@@ -22,6 +30,9 @@
 
   arch-meson ..
 
+  # meson broke -soname for D in the latest update
+  sed -i "s/-soname,/=-soname=/g" build.ninja
+
   ninja
 }
 



More information about the arch-commits mailing list