diff options
author | Martino Pilia | 2021-02-23 19:25:11 +0100 |
---|---|---|
committer | Martino Pilia | 2021-02-23 19:25:11 +0100 |
commit | 939f85e5678751dce8d91a3464eb91164a60e5ac (patch) | |
tree | 7316bf115a8d504cdcb364e1c9414087ff1d2118 /PKGBUILD | |
parent | 11233722d0468a7d2fbfe2d917e29bab6c9cd0fb (diff) | |
download | aur-openvslam-git.tar.gz |
Temporary fix to a build issue with gcc 10
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,8 +1,8 @@ # Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com> _name=openvslam pkgname=${_name}-git -pkgver=r428.e069085 -pkgrel=2 +pkgver=r474.9eb280a +pkgrel=1 pkgdesc="A Versatile Visual SLAM Framework" arch=('x86_64') url="https://github.com/xdspacelab/openvslam" @@ -25,8 +25,12 @@ makedepends=( 'git' ) provides=('openvslam') -source=("${pkgname}-${pkgver}::git+https://github.com/xdspacelab/openvslam.git") -sha256sums=('SKIP') +source=( + "${pkgname}-${pkgver}::git+https://github.com/xdspacelab/openvslam.git" + "patch.diff" +) +sha256sums=('SKIP' + '181eb52ad721b4770263474b7c90c7f0a24cc81977a2f6b48f936b2d0559a43e') pkgver() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -35,6 +39,10 @@ pkgver() { prepare() { cd "${srcdir}/${pkgname}-${pkgver}" + + # Fix build on gcc 10 + git apply "${srcdir}/patch.diff" + [ ! -d build ] || rm -rf build mkdir build && cd build cmake .. \ |