1 # Contributor: Christopher Schwaab -- christopher.schwaab gmail
2 pkgname=scratchbox2-git
5 pkgdesc="The unobtrusive cross-compilation engine."
7 url="http://maemo.gitorious.org/scratchbox2"
8 [ $CARCH = 'i686' ] && makedepends=('git') \
9 && depends=('glibc' 'perl')
10 [ $CARCH = 'x86_64' ] && makedepends=('gcc-multilib' 'binutils-multilib' 'gcc-libs-multilib' 'git' ) \
11 && depends=('lib32-glibc' 'perl')
15 _gitroot="git://gitorious.org/scratchbox2/scratchbox2.git"
16 _gitname="scratchbox2"
18 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
22 msg "Checking out source..."
23 if [ ! -d ${srcdir}/$_gitname ] ; then
24 git clone $_gitroot $_gitname || return 1
26 cd $_gitname && git pull
30 ./autogen.sh || return 1
31 ./configure || return 1
34 make -j1 prefix=$pkgdir/usr DESTDIR=$pkgdir/usr install || return 1