blob: 2ead06c5e9c611fff338835b60138ab0afd50521 (
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
|
# $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}
}
|