# Maintainer: Biswapriyo Nath _realname=serd pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=0.32.2 pkgrel=1 pkgdesc='C library for RDF syntax supporting reading/ writing Turtle and NTriples (mingw-w64)' arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'archlinux: serd' ) msys2_repository_url='https://gitlab.com/drobilla/serd/' url='https://drobilla.net/software/serd.html' license=("spdx:0BSD OR ISC") makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-meson" "${MINGW_PACKAGE_PREFIX}-pkgconf") source=(https://download.drobilla.net/${_realname}-${pkgver}.tar.xz{,.sig}) sha256sums=('df7dc2c96f2ba1decfd756e458e061ded7d8158d255554e7693483ac0963c56b' 'SKIP') validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard build() { mkdir -p build-${MSYSTEM} && cd build-${MSYSTEM} MSYS2_ARG_CONV_EXCL="--prefix=" \ ${MINGW_PREFIX}/bin/meson setup \ --prefix="${MINGW_PREFIX}" \ --wrap-mode=nodownload \ --auto-features=enabled \ --buildtype=plain \ -Ddocs=disabled \ ../${_realname}-${pkgver} ${MINGW_PREFIX}/bin/meson compile } check() { cd "${srcdir}/build-${MSYSTEM}" ${MINGW_PREFIX}/bin/meson test || warning "Tests failed" } package() { cd "${srcdir}/build-${MSYSTEM}" DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/meson install install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" }