summaryrefslogtreecommitdiff
path: root/community/mingw32-binutils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mingw32-binutils/PKGBUILD')
-rw-r--r--community/mingw32-binutils/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/mingw32-binutils/PKGBUILD b/community/mingw32-binutils/PKGBUILD
new file mode 100644
index 000000000..2ead06c5e
--- /dev/null
+++ b/community/mingw32-binutils/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 36142 2010-12-27 16:21:38Z 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.21
+pkgrel=1
+arch=(i686 x86_64)
+url="https://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-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/BaseSystem/GNU-Binutils/binutils-$pkgver/binutils-$pkgver-2-mingw32-src.tar.lzma)
+md5sums=('f75122b3d253cc9054dc82d90c10455a')
+
+build() {
+ tar --lzma -xf binutils-$pkgver-2-mingw32-src.tar.lzma
+ cd $srcdir/binutils-$pkgver
+ ./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}
+}