Fix cmake

This commit is contained in:
Achmad Fathoni 2022-04-22 06:31:30 +07:00
parent f474dc8689
commit 0ee6d52d5c
2 changed files with 15 additions and 6 deletions

View file

@ -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

View file

@ -1,9 +1,10 @@
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Maintainer: AchmadFathoni <fathoni DOT id AT gmail DOT com>
# Contributor: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Mykola Dolhyi <0xb000@gmail.com>
# Contributor: Ramdambo <https://github.com/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