summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2018-11-08 00:53:01 +0000
committerDaniel Bermond2018-11-08 00:53:01 +0000
commit036299de599b81871d037a1add9d6fb81390d6d0 (patch)
tree0843bf98122873a8276c05065117df620ec30155
parente2ce584f657b5cb82239c6a688a08c72af1a3ba7 (diff)
downloadaur-036299de599b81871d037a1add9d6fb81390d6d0.tar.gz
Improvements to package(). Use https in url.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d63372df035..dff697394a2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = caffe2
pkgdesc = A new lightweight, modular, and scalable deep learning framework
pkgver = 0.8.2.pytorch.1.0rc1
- pkgrel = 3
- url = http://caffe2.ai/
+ pkgrel = 4
+ url = https://caffe2.ai/
arch = i686
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index ea0a3447f6e..6aa32681b93 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,10 +31,10 @@ _pytorchver=1.0rc1 # pytorch stable release version
pkgname=caffe2
pkgver="0.8.2.pytorch.${_pytorchver}"
-pkgrel=3
+pkgrel=4
pkgdesc='A new lightweight, modular, and scalable deep learning framework'
arch=('i686' 'x86_64')
-url='http://caffe2.ai/'
+url='https://caffe2.ai/'
license=('BSD')
depends=(
# official repositories:
@@ -231,8 +231,8 @@ package() {
local _entry
local _exclude_dirs
local _exclude_libs
- _exclude_dirs=($(find "${pkgdir}/usr/include" -mindepth 1 -maxdepth 1 -type d ! -name 'caffe*'))
- _exclude_libs=($(find -L "${pkgdir}/usr/lib" -maxdepth 1 -type f ! -name 'libcaffe*'))
+ mapfile -t -d '' _exclude_dirs < <(find "${pkgdir}/usr/include" -mindepth 1 -maxdepth 1 -type d ! -name 'caffe*' -print0)
+ mapfile -t -d '' _exclude_libs < <(find -L "${pkgdir}/usr/lib" -maxdepth 1 -type f ! -name 'libcaffe*' -print0)
rm -f "$pkgdir"/usr/bin/{protoc,unzstd,zstd{cat,mt,}}
rm -f "$pkgdir"/usr/include/{*.h,*.py}
rm -rf "$pkgdir"/usr/lib/cmake/protobuf
@@ -240,7 +240,7 @@ package() {
rm -rf "$pkgdir"/usr/share/pkgconfig
rm -rf "$pkgdir"/usr/share/{ATen,cmake/{ATen,ONNX}}
rm -f "$pkgdir"/usr/share/man/man1/{unzstd,zstd{cat,}}.1
- for _entry in ${_exclude_dirs[@]} ${_exclude_libs[@]}
+ for _entry in "${_exclude_dirs[@]}" "${_exclude_libs[@]}"
do
rm -rf "$_entry"
done