diff --git a/.SRCINFO b/.SRCINFO index aff12554b29..75d445d8c20 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = ignition-math pkgdesc = Math classes and functions for robot applications pkgver = 6.10.0 - pkgrel = 1 + pkgrel = 2 url = https://ignitionrobotics.org/libs/math arch = i686 arch = x86_64 @@ -11,6 +11,8 @@ pkgbase = ignition-math depends = swig optdepends = eigen source = ignition-math-6.10.0.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/ignition-math6_6.10.0.tar.gz + source = cmake.patch::https://github.com/ignitionrobotics/ign-math/commit/6340f89b4d19e6b6aa38ae632760da264409c1ef.diff sha256sums = 9e00284cd6d51afe190165b2b44258e19bd4a28781cbacf21fd6b0bae43c16aa + sha256sums = SKIP pkgname = ignition-math diff --git a/PKGBUILD b/PKGBUILD index 6b34d9316ce..82574ac8f31 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,9 +1,10 @@ -# Maintainer: acxz +# Maintainer: AchmadFathoni +# Contributor: acxz # Contributor: Mykola Dolhyi <0xb000@gmail.com> # Contributor: Ramdambo pkgname=ignition-math pkgver=6.10.0 -pkgrel=1 +pkgrel=2 pkgdesc="Math classes and functions for robot applications" arch=('i686' 'x86_64') url="https://ignitionrobotics.org/libs/math" @@ -13,8 +14,11 @@ 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=('9e00284cd6d51afe190165b2b44258e19bd4a28781cbacf21fd6b0bae43c16aa') +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/${pkgname}6_${pkgver}.tar.gz" + "cmake.patch::https://github.com/ignitionrobotics/ign-math/commit/6340f89b4d19e6b6aa38ae632760da264409c1ef.diff" +) +sha256sums=('9e00284cd6d51afe190165b2b44258e19bd4a28781cbacf21fd6b0bae43c16aa' SKIP) depends=( swig @@ -22,6 +26,10 @@ depends=( _dir="ign-math-${pkgname}6_${pkgver}" +prepare(){ + patch --directory="$_dir" --forward --strip=1 --input="${srcdir}/cmake.patch" +} + build() { cd "$srcdir/$_dir" @@ -37,7 +45,6 @@ build() { make } - package() { cd "$srcdir/$_dir/build" make DESTDIR="$pkgdir/" install