summaryrefslogtreecommitdiff
path: root/community/mingw32-pthreads/PKGBUILD
blob: 28bdf9df16d971f16f412ed64fcfde5aa558e9fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 66225 2012-02-23 05:01:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Marcel Schneider marcelATcoopmastersDOTde

pkgname=mingw32-pthreads
pkgver=2.8.0
_pkgver=2-8-0
pkgrel=3
arch=(i686 x86_64 mips64el)
pkgdesc="The POSIX 1003.1-2001 standard for writing multithreaded applications."
license=(LGPL)
makedepends=('mingw32-gcc-base' 'mingw32-runtime' 'mingw32-w32api')
url="http://sourceware.org/pthreads-win32/"
options=(!strip)
source=(ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-$_pkgver-release.tar.gz)
md5sums=('6d30c693233b1464ef8983fedd8ccb22')

build() {
  cd $srcdir/pthreads-w32-$_pkgver-release
  make CROSS=i486-mingw32- clean GC
}

package() {
  cd $srcdir/pthreads-w32-$_pkgver-release
  mkdir $pkgdir/usr
  mkdir $pkgdir/usr/i486-mingw32
  mkdir $pkgdir/usr/i486-mingw32/include
  mkdir $pkgdir/usr/i486-mingw32/lib
  install $srcdir/pthreads-w32-$_pkgver-release/pthread.h $pkgdir/usr/i486-mingw32/include/pthread.h
  install $srcdir/pthreads-w32-$_pkgver-release/sched.h $pkgdir/usr/i486-mingw32/include/sched.h
  install $srcdir/pthreads-w32-$_pkgver-release/semaphore.h $pkgdir/usr/i486-mingw32/include/semaphore.h
  install $srcdir/pthreads-w32-$_pkgver-release/libpthreadGC2.a $pkgdir/usr/i486-mingw32/lib/libpthread.a
  install $srcdir/pthreads-w32-$_pkgver-release/pthreadGC2.dll $pkgdir/usr/i486-mingw32/lib/
}