From cf67c229903ef94f4b86e14f85f61c9757dcd697 Mon Sep 17 00:00:00 2001 From: Ramdambo Date: Wed, 20 May 2020 23:17:56 +0200 Subject: [PATCH] [ignition-math] Added patch for header bug (#39) --- .SRCINFO | 6 ++++-- PKGBUILD | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 44365a54370..e6c003c01de 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = ignition-math pkgdesc = Math classes and functions for robot applications pkgver = 6.4.0 - pkgrel = 4 + pkgrel = 5 url = https://ignitionrobotics.org/libs/math arch = i686 arch = x86_64 @@ -10,8 +10,10 @@ pkgbase = ignition-math makedepends = ignition-cmake>=2 depends = gcc-libs optdepends = eigen - source = ignition-math-6.4.0::https://github.com/ignitionrobotics/ign-math/archive/ignition-math6_6.4.0.tar.gz + source = ignition-math-6.4.0.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/ignition-math6_6.4.0.tar.gz + source = headerfix.patch::https://github.com/ignitionrobotics/ign-math/commit/fdbd226d70885e85e265d7c61cfa9014bee1a33a.patch sha256sums = 2961b295c61c7536a10b4e87c1fb812d111ee923e1c83bb6a42dede7d76373c5 + sha256sums = 9e1619ca8a04ecce7f0fce4779344657670cf4dea2e207136c83cab95c53ddde pkgname = ignition-math diff --git a/PKGBUILD b/PKGBUILD index 0cce684b69b..c4ee9be8d7d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Ramdambo pkgname=ignition-math pkgver=6.4.0 -pkgrel=4 +pkgrel=5 pkgdesc="Math classes and functions for robot applications" arch=('i686' 'x86_64') url="https://ignitionrobotics.org/libs/math" @@ -13,11 +13,20 @@ depends=('gcc-libs') makedepends=('ignition-cmake>=2') optdepends=('eigen') conflicts=() -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/${pkgname}6_${pkgver}.tar.gz") -sha256sums=("2961b295c61c7536a10b4e87c1fb812d111ee923e1c83bb6a42dede7d76373c5") +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/${pkgname}6_${pkgver}.tar.gz" +"headerfix.patch::https://github.com/ignitionrobotics/ign-math/commit/fdbd226d70885e85e265d7c61cfa9014bee1a33a.patch") +sha256sums=('2961b295c61c7536a10b4e87c1fb812d111ee923e1c83bb6a42dede7d76373c5' + '9e1619ca8a04ecce7f0fce4779344657670cf4dea2e207136c83cab95c53ddde') _dir="ign-math-${pkgname}6_${pkgver}" + +prepare() { + cd "$srcdir/$_dir" + patch --forward --strip=1 --input="${srcdir}/headerfix.patch" +} + + build() { cd "$srcdir/$_dir" @@ -39,3 +48,4 @@ package() { cd "$srcdir/$_dir/build" make DESTDIR="$pkgdir/" install } +