summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2018-10-17 21:02:06 +0000
committerPeter Babič2021-11-23 19:08:36 +0100
commit6836a0f35ae6d8cdbedcfbec116e0bf8c5d94d02 (patch)
tree8a07ea882c768862dcc2c33c7fa47c70f602e7bf
parent6d24ec69a738fc0f78efa2d6c2fbe96d400f590a (diff)
downloadaur-6836a0f35ae6d8cdbedcfbec116e0bf8c5d94d02.tar.gz
Update provides and conflicts. Cosmetic changes.
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD34
2 files changed, 11 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b45175ec352f..52170f9d8ce0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 27e15e23476f..d4c1695532fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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}"