updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / tbb-boost-git / PKGBUILD
blob74aa4b04f1772a9e5147088677d15901a50985a6
1 # Maintainer: Benoit Favre <benoit.favre@gmail.com>
2 pkgname=tbb-boost-git
3 pkgver=20110215
4 pkgrel=1
5 pkgdesc="Parallel implementation of boostexter's scored text classifier"
6 arch=(i686 x86_64)
7 url="http://github.com/benob/tbb-boost"
8 license=('GPL')
9 depends=('intel-tbb')
10 makedepends=('git' 'gcc>=4.4')
11 md5sums=() #generate with 'makepkg -g'
13 _gitroot="git://github.com/benob/tbb-boost.git"
14 _gitname="tbb-boost"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   #
35   # BUILD HERE
36   #
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   install -d $pkgdir/usr/bin/
44   install tbb-train tbb-predict $pkgdir/usr/bin/
45