[arch-commits] Commit in d-containers/repos/community-x86_64 (PKGBUILD PKGBUILD)
Dan Printzell
wild at archlinux.org
Thu Nov 7 19:28:08 UTC 2019
Date: Thursday, November 7, 2019 @ 19:28:07
Author: wild
Revision: 524528
archrelease: copy trunk to community-x86_64
Added:
d-containers/repos/community-x86_64/PKGBUILD
(from rev 524527, d-containers/trunk/PKGBUILD)
Deleted:
d-containers/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 90 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 50 insertions(+), 40 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-07 19:28:01 UTC (rev 524527)
+++ PKGBUILD 2019-11-07 19:28:07 UTC (rev 524528)
@@ -1,40 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-pkgname=d-containers
-_pkgname=containers
-_pkgver=0.8.0-alpha.16
-pkgver=${_pkgver/-/}
-pkgrel=2
-pkgdesc='Containers for D backed by std.experimental.allocator'
-arch=('x86_64')
-url='https://github.com/dlang-community/containers'
-license=('Boost')
-depends=('liblphobos')
-makedepends=('meson' 'ldc' 'd-stdx-allocator')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz")
-sha512sums=('7e88106456a477ef188a86bbe163ec04bda473cede4f8e0082bcd0d9dd9adf9c74b4d9f948dc2340f82a257683d9d4b17bb463053c56a548d1a62c304404b065')
-
-build() {
- mkdir -p $_pkgname-$_pkgver/build
- cd $_pkgname-$_pkgver/build
-
- # Force build with LDC
- export DC=ldc
-
- arch-meson ..
-
- ninja
-}
-
-check() {
- cd $_pkgname-$_pkgver/build
-
- ninja test
-}
-
-package() {
- cd $_pkgname-$_pkgver/build
-
- DESTDIR="$pkgdir" ninja install
-}
-
Copied: d-containers/repos/community-x86_64/PKGBUILD (from rev 524527, d-containers/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-07 19:28:07 UTC (rev 524528)
@@ -0,0 +1,50 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=d-containers
+_pkgname=containers
+_pkgver=0.8.0-alpha.19
+pkgver=${_pkgver/-/}
+pkgrel=1
+pkgdesc='Containers for D backed by std.experimental.allocator'
+arch=('x86_64')
+url='https://github.com/dlang-community/containers'
+license=('Boost')
+depends=('liblphobos')
+makedepends=('meson' 'ldc' 'd-stdx-allocator')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz")
+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
+
+ # Force build with LDC
+ export DC=ldc
+
+ arch-meson ..
+
+ # meson broke -soname for D in the latest update
+ sed -i "s/-soname,/=-soname=/g" build.ninja
+
+ ninja
+}
+
+check() {
+ cd $_pkgname-$_pkgver/build
+
+ ninja test
+}
+
+package() {
+ cd $_pkgname-$_pkgver/build
+
+ DESTDIR="$pkgdir" ninja install
+}
+
More information about the arch-commits
mailing list