# $Id: PKGBUILD 59022 2011-11-20 20:22:21Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Ondrej Jirman # Contributor: mosra pkgname=mingw32-binutils pkgver=2.21.53 pkgrel=1 _uprel=1 arch=(i686 x86_64 'mips64el') 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) md5sums=('e7f6602056f594acc9a4a559909d4649') build() { tar --lzma -xf binutils-$pkgver-${_uprel}-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} }