1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
6 pkgdesc='Create D bindings from GObject introspection files'
8 url='https://github.com/gtkd-developers/gir-to-d'
10 depends=('gcc-libs' 'liblphobos')
11 makedepends=('meson' 'ldc')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
13 sha512sums=('d1cfb906cd094acdf134a9a748fbd71fdbd4a26ce4d1696be356eb0c1c12edf4a96c73b7ca79da46c36f7e0ee15645991364b2bb2e1cbc46e8023233d4327060')
16 mkdir -p $pkgname-$pkgver/build
17 cd $pkgname-$pkgver/build
20 export LDFLAGS="$(echo -ne $LDFLAGS | sed -e 's/-flto=auto/-flto=full/')"
21 # Instanciate all templates. Fixes:
22 # undefined reference to `_D6object__T8opEqualsTxC3gtd11GirFunctionQnTxQwZQBkFxQBexQBiZb'
23 export DFLAGS="--allinst"
31 cd $pkgname-$pkgver/build
33 DESTDIR="$pkgdir" ninja install