How to build OpenCV 4 debian .deb packages properly?

I use ROS Noetic built from source on Raspberry PI 4 armhf debian buster platform.
When I install ROS dependencies - it installs OpenCV debian packages libopencv-* , available on Index of /debian ,
which are compiled OpenCV version 3.2.0
(for example - Debian -- Details of package libopencv-calib3d3.2 in buster , etc)
But I need to run newer OpenCV version, 4.1, or latest 4.5
I’d like to build my own .deb repository with 4th OpenCV version - and take packages from it as I install ROS, not from Index of /debian

I have tried this script
It has downloaded source code from opencv github, and compiled me the following files:
OpenCV-4.1.0-armv7l-dev.deb
OpenCV-4.1.0-armv7l-libs.deb
OpenCV-4.1.0-armv7l-licenses.deb
OpenCV-4.1.0-armv7l-main.deb
OpenCV-4.1.0-armv7l-python.deb
OpenCV-4.1.0-armv7l-scripts.deb

But this packages are not sutable to resolve ROS dependencies - I need to have .deb names like libopencv-calib3d4.1 , etc.

I tried to clone this repository instead of GitHub - opencv/opencv: Open Source Computer Vision Library
But it fails to cmake the source folder:

-- Configuring incomplete, errors occurred!
See also "/home/pi/opencv-build/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/opencv-build/opencv/build/CMakeFiles/CMakeError.log".

How to build opencv debian packages for Raspberry Pi debian buster armhf properly?

Hello! Also interested in how to do it. Did you manage to figure it out?

No, we did not. I use ROS repos precompiled.

Thanks @ipetrov for pointing the Debian Science Team OpenCV repo. @standmit just FYI, this is how I managed to build all the .deb installers in an Ubuntu Focal Dockerfile (x86_64).

FROM ubuntu:focal

RUN apt update \
    && export DEBIAN_FRONTEND=noninteractive \
    && apt install -y --no-install-recommends \
            build-essential \
            ca-certificates \
            cmake \
            file \
            git \
            gnupg2 \
            unzip \
            wget

RUN apt update \
    && export DEBIAN_FRONTEND=noninteractive \
    && apt install -y --no-install-recommends \
            ant \
            debhelper=13.6ubuntu1~bpo20.04.1 \
            default-jdk \
            dh-python \
            doxygen \
            javahelper \
            libavcodec-dev \
            libavformat-dev \
            libdc1394-dev \
            libdebhelper-perl=13.6ubuntu1~bpo20.04.1 \
            libeigen3-dev \
            libgdal-dev \
            libgdcm-dev \
            libgdcm-tools \
            libglu1-mesa-dev \
            libgoogle-glog-dev \
            libgphoto2-dev \
            libgstreamer-plugins-base1.0-dev \
            libgstreamer1.0-dev \
            libgtk-3-dev \
            libjpeg-turbo8-dev \
            liblapack-dev \
            libleptonica-dev \
            libopenexr-dev \
            libopenjp2-7-dev \
            libpng-dev \
            libprotobuf-dev \
            libraw1394-dev \
            libswresample-dev \
            libswscale-dev \
            libtbb-dev \
            libtesseract-dev \
            libtiff-dev \
            libv4l-dev \
            libva-dev \
            libvtk7-dev \
            libvtkgdcm-dev \
            libwebp-dev \
            maven-repo-helper \
            ninja-build \
            ocl-icd-opencl-dev \
            protobuf-compiler \
            python3-bs4 \
            python3-dev \
            python3-numpy
WORKDIR /root
ENV OPENCV_VERSION=4.5.4+dfsg-9
RUN git clone https://salsa.debian.org/science-team/opencv -b debian/${OPENCV_VERSION} \
    && cd opencv \
    && sed -i s/-DINSTALL_C_EXAMPLES=ON/-DINSTALL_C_EXAMPLES=OFF/g debian/rules \
    && sed -i s/libvtk9-dev/libvtk7-dev/g debian/control \
    && dpkg-buildpackage -b -rfakeroot -us -uc