updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / scratchbox2-git / PKGBUILD
blobd1a83bde750c5fc5868942f81f7b14b3012e2b39
1 # Contributor: Christopher Schwaab -- christopher.schwaab gmail
2 pkgname=scratchbox2-git
3 pkgver=9999
4 pkgrel=3
5 pkgdesc="The unobtrusive cross-compilation engine."
6 arch=('i686' 'x86_64')
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')
12 license=('GPL')
14 build() {
15         _gitroot="git://gitorious.org/scratchbox2/scratchbox2.git"
16         _gitname="scratchbox2"
18         export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
20         cd ${srcdir}
22         msg "Checking out source..."
23         if [ ! -d ${srcdir}/$_gitname ] ; then
24                 git clone $_gitroot $_gitname || return 1
25         else
26                 cd $_gitname && git pull
27         fi
29         cd $srcdir/$_gitname
30         ./autogen.sh || return 1
31         ./configure || return 1
32         make -j1 || return 1
33         mkdir -p $pkgdir/usr
34         make -j1 prefix=$pkgdir/usr DESTDIR=$pkgdir/usr install || return 1