updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / ppu-binutils / PKGBUILD
bloba14f1c985139758da451abe1d73a793ea973098b
1 # Maintainer: Tetsumaki <http://goo.gl/YMBdA>
3 pkgname=ppu-binutils
4 pkgver=2.20.1
5 pkgrel=1
6 pkgdesc="GNU toolchain for cross-compiling to Cell Broadband Engine's PPU"
7 arch=('i686' 'x86_64')
8 url="http://ftp.gnu.org/gnu/binutils/"
9 license=('GPL')
10 install=${pkgname}.install
11 source=(http://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
12 sha256sums=('228b84722d87e88e7fdd36869e590e649ab523a0800a7d53df906498afe6f6f8')
14 build() {
15   cd "${srcdir}/binutils-${pkgver}"
16   ./configure --prefix=/usr/lib/cell/toolchain \
17     --disable-shared --disable-nls --disable-werror --disable-includedir --disable-infodir \
18     --program-prefix=ppu- \
19     --build=$(arch) \
20     --target=powerpc64-linux-gnu \
21     --enable-targets=spu \
22     --mandir=/usr/share/man \
23     --libdir=/usr/lib/cell/toolchain/powerpc64-linux-gnu/lib \
24     --includedir=/usr/lib/cell/toolchain/powerpc64-linux-gnu/include
25   make || return 1
26   make DESTDIR="${pkgdir}/" install || return 1