Date: Sunday, March 12, 2023 @ 22:40:23
Author: svenstaro
Revision: 1419584
upgpkg: opengv 1.0.git1-3: Apply Debian patches (FS#77824)
Modified:
opengv/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-12 22:29:09 UTC (rev 1419583)
+++ PKGBUILD 2023-03-12 22:40:23 UTC (rev 1419584)
@@ -2,24 +2,25 @@
pkgname=opengv
pkgver=1.0.git1
_commit=91f4b19
-pkgrel=2
+pkgrel=3
pkgdesc="An efficient C++ library for calibrated camera pose computation using
geometric computer vision algorithms"
arch=('x86_64')
url="https://laurentkneip.github.io/opengv/"
license=('BSD')
-depends=('eigen' 'python-numpy')
+depends=('eigen' 'python-numpy' 'pybind11')
makedepends=('cmake' 'git' 'ninja')
source=("git+https://github.com/laurentkneip/opengv.git#commit=$_commit"
- "git+https://github.com/pybind/pybind11.git")
+
https://salsa.debian.org/science-team/opengv/-/raw/master/debian/patches/no-march-options.patch
+
https://salsa.debian.org/science-team/opengv/-/raw/master/debian/patches/use-system-pybind11.patch)
sha256sums=('SKIP'
- 'SKIP')
+ 'e483d0c1a4a76920ac3260999978154b12422c42e9991e69afc9230643d5c24a'
+ '20832cd52808bd7ef2f6bee8a5c85f69fc0fe6c82169e2b2297781f4bdcdd3ae')
prepare() {
cd opengv
- git submodule init
- git config submodule.pybind11.url "${srcdir}/pybind11"
- git submodule update
+ patch -Np1 -i "${srcdir}/no-march-options.patch"
+ patch -Np1 -i "${srcdir}/use-system-pybind11.patch"
}
build() {
@@ -35,6 +36,12 @@
ninja -C build
}
+check() {
+ cd opengv
+
+ ninja -C build test
+}
+
package() {
cd opengv
@@ -42,9 +49,3 @@
install -Dm644 License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-check() {
- cd opengv
-
- ninja -C build test
-}