updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / scratchbox2 / PKGBUILD
blob29a1c88acdfe89be5fe2d951b5f7862e5c696e5f
1 # Contributor: Christopher Schwaab -- christopher.schwaab gmail
2 pkgname=scratchbox2
3 pkgver=2.2.3
4 pkgrel=1
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' 'fakeroot' 'realpath')
10 [ $CARCH = 'x86_64' ] && makedepends=('gcc-multilib' 'binutils-multilib' 'gcc-libs-multilib' 'git') \
11                       && depends=('lib32-glibc' 'perl' 'fakeroot' 'realpath')
12 license=('GPL')
13 conflicts=('scratchbox2-git')
15 build() {
16         _gitroot="git://gitorious.org/scratchbox2/scratchbox2.git"
17         _gitname="scratchbox2"
19         cd ${srcdir}
21         if [ ! -d ${srcdir}/$_gitname ] ; then
22                 msg "Checking out source..."
23                 git clone $_gitroot $_gitname
24                 cd $srcdir/$_gitname
25                 git checkout $pkgver
26         else
27                 cd $srcdir/$_gitname
28         fi
30         export LDFLAGS=`echo $LDFLAGS | sed -r 's/,?--as-needed|(-Wl,--as-needed)$//'`
31         unset CFLAGS
32         ./autogen.sh
33         make
35         mkdir -p $pkgdir/usr
36         make prefix=$pkgdir/usr install