Skip to content

Commit

Permalink
Revert "remove pthread dll"
Browse files Browse the repository at this point in the history
This reverts commit 6c199d1.
  • Loading branch information
jeroen committed Sep 23, 2023
1 parent f9ab00f commit 9af13b6
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions mingw-w64-winpthreads-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_realname=winpthreads
pkgbase=mingw-w64-${_realname}-git
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git")
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git" "${MINGW_PACKAGE_PREFIX}-libwinpthread-git")
pkgver=10.0.0.r0.gaa08f56da
pkgrel=1
_commit='aa08f56da559016f10336dddca85d59f9bdc9e02'
Expand Down Expand Up @@ -58,7 +58,7 @@ build() {
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--enable-static \
--disable-shared \
--enable-shared \
"${extra_config[@]}"

# I failed to figure out how to disable stripping, this
Expand All @@ -80,7 +80,7 @@ _install_licenses() {
}

package_winpthreads-git() {
depends=("${MINGW_PACKAGE_PREFIX}-crt-git")
depends=("${MINGW_PACKAGE_PREFIX}-crt-git" "${MINGW_PACKAGE_PREFIX}-libwinpthread-git=${pkgver}")
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}")

Expand All @@ -92,6 +92,19 @@ package_winpthreads-git() {
_install_licenses ${_realname}
}

package_libwinpthread-git() {
provides=("${MINGW_PACKAGE_PREFIX}-libwinpthread")
conflicts=("${MINGW_PACKAGE_PREFIX}-libwinpthread")

cd ${srcdir}/build-${MINGW_CHOST}
make DESTDIR=${pkgdir} install

rm -rf ${pkgdir}${MINGW_PREFIX}/include
rm -rf ${pkgdir}${MINGW_PREFIX}/lib

_install_licenses libwinpthread
}

# template start; name=mingw-w64-splitpkg-wrappers; version=1.0;
# vim: set ft=bash :

Expand Down

0 comments on commit 9af13b6

Please sign in to comment.