[arch-commits] Commit in glibd/repos/community-x86_64 (PKGBUILD PKGBUILD)
Dan Printzell
wild at archlinux.org
Thu Nov 7 19:29:29 UTC 2019
Date: Thursday, November 7, 2019 @ 19:29:28
Author: wild
Revision: 524532
archrelease: copy trunk to community-x86_64
Added:
glibd/repos/community-x86_64/PKGBUILD
(from rev 524531, glibd/trunk/PKGBUILD)
Deleted:
glibd/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 75 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 43 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-07 19:29:22 UTC (rev 524531)
+++ PKGBUILD 2019-11-07 19:29:28 UTC (rev 524532)
@@ -1,32 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=glibd
-_pkgname=GlibD
-pkgver=2.1.0
-pkgrel=4
-pkgdesc='D bindings for the GLib C Utility Library'
-arch=('x86_64')
-url='https://github.com/gtkd-developers/GlibD'
-license=('LGPL3')
-depends=('glib2' 'liblphobos')
-makedepends=('meson' 'ldc' 'gobject-introspection' 'gir-to-d')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('2e00933e666f213ef5e38d3df5695966a76cdac067603e39d09f7ac8a5a4cab48ea498044de1d9daa2920609b7f8d6d5c090a666a6507a563bb896be2cc8c32f')
-build() {
- mkdir -p $_pkgname-$pkgver/build
- cd $_pkgname-$pkgver/build
-
- # Force build with LDC
- export DC=ldc
-
- arch-meson ..
-
- ninja
-}
-
-package() {
- cd $_pkgname-$pkgver/build
-
- DESTDIR="$pkgdir" ninja install
-}
Copied: glibd/repos/community-x86_64/PKGBUILD (from rev 524531, glibd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-07 19:29:28 UTC (rev 524532)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=glibd
+_pkgname=GlibD
+pkgver=2.1.0
+pkgrel=5
+pkgdesc='D bindings for the GLib C Utility Library'
+arch=('x86_64')
+url='https://github.com/gtkd-developers/GlibD'
+license=('LGPL3')
+depends=('glib2' 'liblphobos')
+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
+
+ # 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
+}
+
+package() {
+ cd $_pkgname-$pkgver/build
+
+ DESTDIR="$pkgdir" ninja install
+}
More information about the arch-commits
mailing list