mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=cross-arm-wince-cegcc-gcc
|
|
pkgver=0.55
|
|
pkgrel=1
|
|
pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
|
|
arch=(i686 x86_64)
|
|
license=(GPL)
|
|
options=(!libtool)
|
|
url="http://cegcc.sf.net"
|
|
depends=(cross-arm-wince-cegcc-binutils)
|
|
conflicts=(cross-arm-wince-cegcc-gcc-base)
|
|
groups=('cegcc')
|
|
source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
|
|
md5sums=('a781929486db5b6154a0f82a825895e9')
|
|
|
|
_prefix=/opt/cegcc
|
|
|
|
build() {
|
|
cd ${startdir}/src/cegcc-$pkgver/src
|
|
|
|
export PATH=$_prefix/bin:$PATH
|
|
export TARGET=arm-wince-cegcc
|
|
unset CFLAGS
|
|
unset CXXFLAGS
|
|
unset LDFLAGS
|
|
unset MAKEFLAGS
|
|
|
|
mkdir build-gcc
|
|
cd build-gcc
|
|
|
|
../gcc/configure \
|
|
--prefix=${_prefix} \
|
|
--exec-prefix=${_prefix} \
|
|
--bindir=${_prefix}/bin \
|
|
--target=arm-wince-cegcc \
|
|
--build=$CARCH \
|
|
--host=$CARCH \
|
|
--disable-nls \
|
|
--includedir=${_prefix}/include
|
|
|
|
make || return 1
|
|
make DESTDIR=${startdir}/pkg install || return 1
|
|
rm -f $startdir/pkg/$_prefix/lib/libiberty.a
|
|
}
|