summaryrefslogtreecommitdiff
path: root/community/mingw32-binutils/PKGBUILD
blob: d5d575891baa6596802319f6615aeaa1694bd12a (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 61841 2012-01-08 20:30:41Z 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.22
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=('35419c797be081e081a664f95c3d3361')

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
  ./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}
}