upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / gir-to-d / repos / community-x86_64 / PKGBUILD
blob33938712be416f8e59340aa3ea2edb45373ac8ab
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=gir-to-d
4 pkgver=0.23.1
5 pkgrel=1
6 pkgdesc='Create D bindings from GObject introspection files'
7 arch=('x86_64')
8 url='https://github.com/gtkd-developers/gir-to-d'
9 license=('LGPL3')
10 depends=('gcc-libs' 'liblphobos')
11 makedepends=('meson' 'ldc')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
13 sha512sums=('d1cfb906cd094acdf134a9a748fbd71fdbd4a26ce4d1696be356eb0c1c12edf4a96c73b7ca79da46c36f7e0ee15645991364b2bb2e1cbc46e8023233d4327060')
15 build() {
16   mkdir -p $pkgname-$pkgver/build
17   cd $pkgname-$pkgver/build
19   export DC=ldc
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"
25   arch-meson ..
27   ninja
30 package() {
31   cd $pkgname-$pkgver/build
33   DESTDIR="$pkgdir" ninja install