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

Loading…
Cancel
Save