# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=winpthreads-stub
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-winpthreads")
provides=("${MINGW_PACKAGE_PREFIX}-winpthreads")
pkgver=1.0.0
pkgrel=1
pkgdesc="Stub files to replace winpthreads library (mingw-w64)"
url="https://www.mingw-w64.org/"
license=('NONE')
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
makedepends=("${MINGW_PACKAGE_PREFIX}-binutils")
options=('!emptydirs')
source=()
sha256sums=()

package() {
  mkdir -p ${pkgdir}${MINGW_PREFIX}/{include,lib}
  touch ${pkgdir}${MINGW_PREFIX}/include/pthread_{signal,time,unistd}.h
  ar rcs ${pkgdir}${MINGW_PREFIX}/lib/libpthread.a
}
