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

Filipe Laíns ffy00 at archlinux.org
Sun Nov 4 16:46:53 UTC 2018


    Date: Sunday, November 4, 2018 @ 16:46:53
  Author: ffy00
Revision: 401480

force build with LDC

Modified:
  glibd/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-04 16:39:58 UTC (rev 401479)
+++ PKGBUILD	2018-11-04 16:46:53 UTC (rev 401480)
@@ -1,28 +1,33 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
 
 pkgname=glibd
+_pkgname=GlibD
 pkgver=2.0.0
 pkgrel=4
-pkgdesc="D bindings for the GLib C Utility Library"
-arch=(x86_64)
-url="https://github.com/gtkd-developers/GlibD"
-license=(LGPL)
-depends=(liblphobos glib2)
-makedepends=(ldc meson gobject-introspection gir-to-d)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/gtkd-developers/GlibD/archive/v$pkgver.tar.gz")
-sha256sums=('0935b9c4cb33289d0739923af3cd048300cc36e44ef72f2e8c1679944d6a4c4d')
+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=('0935b9c4cb33289d0739923af3cd048300cc36e44ef72f2e8c1679944d6a4c4d')
 
-prepare() {
-  mkdir -p build
-}
+build() {
+  mkdir -p $_pkgname-$pkgver/build
+  cd $_pkgname-$pkgver/build
 
-build() {
-  cd build
-  meson ../GlibD-$pkgver --prefix=/usr
+  # Force build with LDC
+  export DC=ldc
+
+  arch-meson ..
+
   ninja
 }
 
 package() {
-  cd build
+  cd $_pkgname-$pkgver/build
+
   DESTDIR="$pkgdir" ninja install
 }


More information about the arch-commits mailing list