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

Dan Printzell wild at archlinux.org
Thu Nov 7 19:28:02 UTC 2019


    Date: Thursday, November 7, 2019 @ 19:28:01
  Author: wild
Revision: 524527

upgpkg: d-containers 0.8.0alpha.19-1

Updated to 0.8.0-alpha.19. Add meson building fixes

Modified:
  d-containers/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-07 19:27:37 UTC (rev 524526)
+++ PKGBUILD	2019-11-07 19:28:01 UTC (rev 524527)
@@ -2,9 +2,9 @@
 
 pkgname=d-containers
 _pkgname=containers
-_pkgver=0.8.0-alpha.16
+_pkgver=0.8.0-alpha.19
 pkgver=${_pkgver/-/}
-pkgrel=2
+pkgrel=1
 pkgdesc='Containers for D backed by std.experimental.allocator'
 arch=('x86_64')
 url='https://github.com/dlang-community/containers'
@@ -12,8 +12,15 @@
 depends=('liblphobos')
 makedepends=('meson' 'ldc' 'd-stdx-allocator')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz")
-sha512sums=('7e88106456a477ef188a86bbe163ec04bda473cede4f8e0082bcd0d9dd9adf9c74b4d9f948dc2340f82a257683d9d4b17bb463053c56a548d1a62c304404b065')
+sha512sums=('ef415e2bf7829e05c458cee0e41b6fc5768805a8dee332fb6a01a72e1e723f240f183cd1fd5ed74848cc4ea860b0746dca1c5dee13d37f819f0025da99098c4a')
 
+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
@@ -23,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