Date: Sunday, November 4, 2018 @ 16:39:53
  Author: ffy00
Revision: 401478

build with LDC

Modified:
  gir-to-d/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-11-04 16:27:13 UTC (rev 401477)
+++ PKGBUILD    2018-11-04 16:39:53 UTC (rev 401478)
@@ -2,27 +2,29 @@
 
 pkgname=gir-to-d
 pkgver=0.16.1
-pkgrel=2
-pkgdesc="Create D bindings from GObject introspection files"
-arch=(x86_64)
-url="https://github.com/gtkd-developers/gir-to-d";
-license=(LGPL3)
-depends=(gcc-libs)
-makedepends=(meson dmd libphobos)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/gtkd-developers/gir-to-d/archive/v$pkgver.tar.gz";)
-sha256sums=('da15697873b38a51847a00cc07b6d2ad0c7d181bde5cd81201c6356063354533')
+pkgrel=3
+pkgdesc='Create D bindings from GObject introspection files'
+arch=('x86_64')
+url='https://github.com/gtkd-developers/gir-to-d'
+license=('LGPL3')
+depends=('gcc-libs' 'liblphobos')
+makedepends=('meson' 'ldc')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('dc2159042799d161fa7097a1cccd5038196e548512ff1fde9e1ca9393781d74ef9bb07c00e8cb812c43d98ce43778e1a3444d9085743ed8adaa818c9c48ccf93')
 
-prepare() {
-  mkdir -p build
-}
+build() {
+  mkdir -p $pkgname-$pkgver/build
+  cd $pkgname-$pkgver/build
 
-build() {
-  cd build
-  meson ../$pkgname-$pkgver --prefix=/usr
+  export DC=ldc
+
+  arch-meson ..
+
   ninja
 }
 
 package() {
-  cd build
+  cd $pkgname-$pkgver/build
+
   DESTDIR="$pkgdir" ninja install
 }

Reply via email to