Update provides and conflicts. Cosmetic changes.

master
Daniel Bermond 6 years ago committed by Peter Babič
parent 6d24ec69a7
commit 6836a0f35a
  1. 10
      .SRCINFO
  2. 34
      PKGBUILD

@ -1,7 +1,7 @@
pkgbase = caffe
pkgdesc = A deep learning framework made with expression, speed, and modularity in mind (cpu only)
pkgver = 1.0
pkgrel = 10
pkgrel = 11
url = http://caffe.berkeleyvision.org/
arch = i686
arch = x86_64
@ -38,14 +38,6 @@ pkgbase = caffe
depends = python-leveldb
depends = python-scikit-image
depends = python-pydotplus
provides = caffe-cpu
conflicts = caffe-git
conflicts = caffe-cuda
conflicts = caffe-cuda-git
conflicts = caffe-cpu
conflicts = caffe-cpu-git
conflicts = caffe2
conflicts = caffe2-cuda
replaces = caffe-cpu
source = caffe-1.0.tar.gz::https://github.com/BVLC/caffe/archive/1.0.tar.gz
source = Makefile.config

@ -1,9 +1,9 @@
# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
# Contributor: Micah Chambers <micahc.vt@gmail.com>
pkgname=caffe
pkgver=1.0
pkgrel=10
pkgrel=11
pkgdesc='A deep learning framework made with expression, speed, and modularity in mind (cpu only)'
arch=('i686' 'x86_64')
url='http://caffe.berkeleyvision.org/'
@ -23,9 +23,6 @@ depends=(
# https://github.com/BVLC/caffe/blob/1.0/python/caffe/draw.py#L7-L22
)
makedepends=('boost' 'doxygen' 'texlive-core')
provides=('caffe-cpu')
conflicts=('caffe-git' 'caffe-cuda' 'caffe-cuda-git' 'caffe-cpu' 'caffe-cpu-git'
'caffe2' 'caffe2-cuda')
replaces=('caffe-cpu')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/BVLC/caffe/archive/${pkgver}.tar.gz"
'Makefile.config')
@ -67,50 +64,39 @@ prepare() {
build() {
cd "${pkgname}-${pkgver}"
msg2 "Building target 'all'..."
make all
msg2 "Building target 'pycaffe'..."
make pycaffe
msg2 "Building target 'docs'..."
make all pycaffe
rm -rf doxygen
make docs
msg2 "Building target 'distribute'..."
make distribute
make docs distribute
}
# uncomment this block if you want to run the checks/tests
#check() {
# cd "${pkgname}-${pkgver}"
# msg2 "Building target 'test'..."
# make test
# msg2 "Making target 'runtest'..."
# make runtest
#}
package() {
cd "${pkgname}-${pkgver}/distribute"
local _pythonver
_pythonver="$(python --version | awk '{ print $2 }' | grep -o '^[0-9]*\.[0-9]*')"
mkdir -p "$pkgdir"/usr/{bin,include,lib/python"$_pythonver"/site-packages,share/doc}
cd "${pkgname}-${pkgver}/distribute"
# binaries
install -m755 bin/* "${pkgdir}/usr/bin"
# library
cp -af lib/libcaffe.so* "${pkgdir}/usr/lib"
cp -a lib/libcaffe.so* "${pkgdir}/usr/lib"
chmod 755 "${pkgdir}/usr/lib"/libcaffe.so.*.*.*
# headers
cp -af include "${pkgdir}/usr"
cp -a include "${pkgdir}/usr"
# python
install -m755 python/*.py "${pkgdir}/usr/bin"
cp -af python/caffe "${pkgdir}/usr/lib/python${_pythonver}/site-packages"
cp -a python/caffe "${pkgdir}/usr/lib/python${_pythonver}/site-packages"
# proto
install -D -m644 proto/caffe.proto -t "${pkgdir}/usr/share/caffe"
@ -118,7 +104,7 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# docs
cp -af doxygen/html "${pkgdir}/usr/share/doc/${pkgname}"
cp -a doxygen/html "${pkgdir}/usr/share/doc/${pkgname}"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"

Loading…
Cancel
Save