blob: 02d58ef3ccf383d649e80c85f96064f10e68892b (
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
37
38
39
40
|
# $Id: PKGBUILD 20972 2010-07-13 09:53:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=cross-arm-wince-cegcc-profile
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=('glibc')
groups=('cegcc')
source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b')
build() {
cd ${startdir}/src/cegcc/src/profile
export PATH=$_prefix/bin:$PATH
export TARGET=arm-wince-cegcc
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
unset MAKEFLAGS
./configure \
--build=$CARCH \
--host=arm-wince-cegcc \
--target=arm-wince-cegcc \
--prefix=$_prefix
make || return 1
sed -i "s|prefix = $_prefix|prefix = $startdir/pkg/$_prefix|g" Makefile && \
make install
find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \;
}
|