# Maintainer: Micah Chambers pkgname=caffe pkgver=rc2 pkgrel=1 pkgdesc="Neural network toolkit" arch=('i686' 'x86_64') url="https://github.com/BVLC/caffe" license=('BSD') groups=('base-devel') depends=('atlas-lapack-base' 'hdf5' 'opencv' 'boost' 'protobuf' 'google-glog' 'gflags' 'leveldb' 'snappy' 'lmdb') makedepends=('git') optdepends=('cuda: for GPU support') source=("https://github.com/BVLC/$pkgname/archive/$pkgver.tar.gz") sha256sums=('55c9c20870b30ce398e19e4f1a62ade1eff08fce51e28fa5604035b711978eec') build() { cd "$srcdir/$pkgname-$pkgver" rm -fr build mkdir build cd build cmake ../ -DAtlas_LAPACK_LIBRARY=/usr/lib64/libatlas.so \ -DAtlas_BLAS_LIBRARY=/usr/lib64/libatlas.so \ -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/ make } package() { cd "$srcdir/$pkgname-$pkgver/build" make install }