summaryrefslogtreecommitdiff
path: root/community/mingw32-binutils
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/mingw32-binutils
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/mingw32-binutils')
-rw-r--r--community/mingw32-binutils/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/mingw32-binutils/PKGBUILD b/community/mingw32-binutils/PKGBUILD
new file mode 100644
index 000000000..1b462e15f
--- /dev/null
+++ b/community/mingw32-binutils/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 83337 2013-01-29 19:58:19Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Ondrej Jirman <megous@megous.com>
+# Contributor: mosra <mosra@centrum.cz>
+
+pkgname=mingw32-binutils
+pkgver=2.23.1
+pkgrel=3
+_uprel=1
+arch=(i686 x86_64)
+url="https://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/"
+pkgdesc="A set of programs to assemble and manipulate binary and object files (mingw)"
+depends=('glibc' 'zlib')
+license=(GPL)
+source=("https://downloads.sourceforge.net/project/mingw/MinGW/Base/binutils/binutils-$pkgver/binutils-$pkgver-${_uprel}-mingw32-src.tar.lzma"
+ "260cd952.patch::http://sourceware.org/git/?p=binutils.git;a=patch;h=260cd95271cdf002ed8e419898fd29c42e257841")
+md5sums=('5d76604f545b151230d1c86e1b8cfab3'
+ '9226501a8258a12c81956252ba3b4ba1')
+
+build() {
+ [ $NOEXTRACT -eq 1 ] || tar --lzma -xf binutils-$pkgver-${_uprel}-mingw32-src.tar.lzma
+ [ $NOEXTRACT -eq 1 ] || tar xjf binutils-$pkgver-${_uprel}-mingw32-src/binutils-$pkgver.tar.bz2
+
+ cd $srcdir/binutils-$pkgver
+ patch -Np1 <$srcdir/260cd952.patch || true
+ ./configure \
+ --target=i486-mingw32 \
+ --host=$CHOST \
+ --build=$CHOST \
+ --prefix=/usr \
+ --disable-nls \
+ --enable-shared
+ make
+ make install DESTDIR=$pkgdir
+ rm -rf $pkgdir/usr/lib
+ rm -rf $pkgdir/usr/share/{info,man}
+}