summaryrefslogtreecommitdiff
path: root/community/mingw32-pthreads/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-01 23:11:14 +0000
committerroot <root@rshg047.dnsready.net>2011-07-01 23:11:14 +0000
commita81bc5be2e3672119ca0313a1fde10397a31211e (patch)
treedf4a74a90bd4186a7aab0c935caa8c0a469b9c23 /community/mingw32-pthreads/PKGBUILD
parent76400556d9e8a5dedc692487c13b76a541813a23 (diff)
Fri Jul 1 23:11:14 UTC 2011
Diffstat (limited to 'community/mingw32-pthreads/PKGBUILD')
-rw-r--r--community/mingw32-pthreads/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/mingw32-pthreads/PKGBUILD b/community/mingw32-pthreads/PKGBUILD
new file mode 100644
index 000000000..842a8352a
--- /dev/null
+++ b/community/mingw32-pthreads/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 50731 2011-06-30 10:05:09Z 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=2
+arch=(i686 x86_64)
+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/
+}