blob: edd8f46dff86bedc81daf280a3fe7940a297c99c (
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
35
36
|
# $Id: PKGBUILD 60993 2011-12-20 11:27:39Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=arm-wince-cegcc-binutils
pkgver=0.59.1
pkgrel=1
_prefix=/opt/cegcc
pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
arch=(i686 x86_64)
license=(GPL)
options=(!libtool)
url="http://cegcc.sf.net"
depends=(zlib)
groups=('cegcc')
source=(http://arch.p5n.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b')
build() {
cd $srcdir/cegcc/src/binutils
unset CFLAGS
unset LDFLAGS
find . -name Makefile.in -exec sed -i 's|WARN_CFLAGS =.*|WARN_CFLAGS =|g' {} \;
[ $NOEXTRACT -eq 1 ] || ./configure \
--prefix=${_prefix} \
--exec-prefix=${_prefix} \
--bindir=${_prefix}/bin \
--target=arm-wince-cegcc \
--disable-nls \
--includedir=${_prefix}/include
make || (cd etc && make) && make
make DESTDIR=$pkgdir install
rm -rf $pkgdir/opt/cegcc/info
}
|