mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
extra/opencv to 4.5.2-2
This commit is contained in:
parent
ad5cc97a5d
commit
eab4f8f0ad
1 changed files with 21 additions and 7 deletions
|
@ -7,9 +7,9 @@
|
|||
# - link with libatomic on v5/v6
|
||||
|
||||
pkgbase=opencv
|
||||
pkgname=(opencv opencv-samples)
|
||||
pkgname=(opencv opencv-samples python-opencv)
|
||||
pkgver=4.5.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Open Source Computer Vision Library"
|
||||
arch=(x86_64)
|
||||
license=(BSD)
|
||||
|
@ -18,10 +18,10 @@ depends=(tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 openjpeg
|
|||
makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke qt5-base vtk glew ant java-environment)
|
||||
optdepends=('opencv-samples: samples'
|
||||
'vtk: for the viz module'
|
||||
'qt5-base: for the HighGUI module and the Python bindings'
|
||||
'hdf5: for the HDF5 module and the Python bindings'
|
||||
'glew: for the viz module'
|
||||
'qt5-base: for the HighGUI module'
|
||||
'hdf5: for the HDF5 module'
|
||||
'opencl-icd-loader: For coding with OpenCL'
|
||||
'python-numpy: Python bindings'
|
||||
'java-runtime: Java interface')
|
||||
source=(https://github.com/opencv/opencv/archive/$pkgver/$pkgname-$pkgver.tar.gz
|
||||
https://github.com/opencv/opencv_contrib/archive/$pkgver/opencv_contrib-$pkgver.tar.gz
|
||||
|
@ -76,7 +76,7 @@ package_opencv() {
|
|||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
# install license file
|
||||
install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
install -Dm644 $pkgbase-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
# separate samples package
|
||||
mv "$pkgdir"/usr/share/opencv4/samples "$srcdir"
|
||||
|
@ -84,6 +84,9 @@ package_opencv() {
|
|||
# Add java symlinks expected by some binary blobs
|
||||
ln -sr "$pkgdir"/usr/share/java/{opencv4/opencv-${pkgver//./},opencv}.jar
|
||||
ln -sr "$pkgdir"/usr/lib/{libopencv_java${pkgver//./},libopencv_java}.so
|
||||
|
||||
# Split Python bindings
|
||||
rm -r "$pkgdir"/usr/lib/python3*
|
||||
}
|
||||
|
||||
package_opencv-samples() {
|
||||
|
@ -95,5 +98,16 @@ package_opencv-samples() {
|
|||
mv samples "$pkgdir"/usr/share/opencv4
|
||||
|
||||
# install license file
|
||||
install -Dm644 opencv-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
install -Dm644 $pkgbase-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
||||
|
||||
package_python-opencv() {
|
||||
pkgdesc="Python bindings for OpenCV"
|
||||
depends=(python-numpy opencv vtk glew qt5-base hdf5)
|
||||
unset optdepends
|
||||
|
||||
DESTDIR="$pkgdir" cmake --install build/modules/python3
|
||||
|
||||
# install license file
|
||||
install -Dm644 $pkgbase-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue