1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-12 03:55:00 -05:00
arch-ppa/src/mingw-w64-winpthreads/PKGBUILD

41 lines
1.5 KiB
Bash
Raw Normal View History

2018-06-19 12:10:51 -04:00
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2018-03-03 21:51:38 -05:00
_targets="i686-w64-mingw32 x86_64-w64-mingw32"
pkgname=mingw-w64-winpthreads
2019-03-03 20:21:14 -05:00
pkgver=6.0.0
2018-03-03 21:51:38 -05:00
pkgrel=1
pkgdesc='MinGW-w64 winpthreads library'
arch=('any')
url='http://mingw-w64.sourceforge.net'
license=('custom')
groups=('mingw-w64-toolchain' 'mingw-w64')
makedepends=('mingw-w64-gcc-base' 'mingw-w64-binutils' 'mingw-w64-crt')
provides=('mingw-w64-headers-bootstrap')
conflicts=('mingw-w64-headers-bootstrap')
replaces=('mingw-w64-headers-bootstrap')
options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
validpgpkeys=('CAF5641F74F7DFBA88AE205693BDB53CD4EBC740')
2019-03-03 20:21:14 -05:00
source=(https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2{,.sig})
sha256sums=('805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0'
2018-03-03 21:51:38 -05:00
'SKIP')
build() {
for _target in ${_targets}; do
msg "Building ${_target} winpthreads..."
mkdir -p "$srcdir"/winpthreads-build-${_target} && cd "$srcdir"/winpthreads-build-${_target}
2019-03-03 20:21:14 -05:00
"$srcdir"/mingw-w64-v${pkgver}/mingw-w64-libraries/winpthreads/configure --prefix=/usr/${_target} \
2018-03-03 21:51:38 -05:00
--host=${_target} --enable-static --enable-shared
make
done
}
package() {
for _target in ${_targets}; do
cd "$srcdir"/winpthreads-build-${_target}
make DESTDIR="$pkgdir" install
${_target}-strip --strip-unneeded "$pkgdir"/usr/${_target}/bin/*.dll
done
}