2019-06-28 01:07:53 +02:00
|
|
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
|
2015-08-10 23:03:47 +02:00
|
|
|
# Contributor: Mykola Dolhyi <0xb000@gmail.com>
|
2020-05-20 18:05:18 +02:00
|
|
|
# Contributor: Ramdambo <https://github.com/Ramdambo>
|
2015-08-10 23:03:47 +02:00
|
|
|
pkgname=ignition-math
|
2020-01-15 03:59:39 +01:00
|
|
|
pkgver=6.4.0
|
2020-05-20 23:17:56 +02:00
|
|
|
pkgrel=5
|
2015-08-10 23:03:47 +02:00
|
|
|
pkgdesc="Math classes and functions for robot applications"
|
|
|
|
arch=('i686' 'x86_64')
|
2020-03-07 19:26:46 +01:00
|
|
|
url="https://ignitionrobotics.org/libs/math"
|
2015-08-10 23:03:47 +02:00
|
|
|
license=('Apache')
|
|
|
|
groups=('development')
|
2018-02-24 10:45:26 +01:00
|
|
|
depends=('gcc-libs')
|
2020-01-16 02:32:45 +01:00
|
|
|
makedepends=('ignition-cmake>=2')
|
2020-01-16 02:29:42 +01:00
|
|
|
optdepends=('eigen')
|
2015-08-10 23:03:47 +02:00
|
|
|
conflicts=()
|
2020-05-20 23:17:56 +02:00
|
|
|
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')
|
2015-08-10 23:03:47 +02:00
|
|
|
|
2020-05-20 18:05:18 +02:00
|
|
|
_dir="ign-math-${pkgname}6_${pkgver}"
|
2015-08-10 23:03:47 +02:00
|
|
|
|
2020-05-20 23:17:56 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$_dir"
|
|
|
|
patch --forward --strip=1 --input="${srcdir}/headerfix.patch"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-08-10 23:03:47 +02:00
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_dir"
|
|
|
|
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
# Configure build
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE="Release" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR="lib" \
|
2018-02-24 10:45:26 +01:00
|
|
|
-DBUILD_TESTING:BOOL=False
|
2015-08-10 23:03:47 +02:00
|
|
|
|
|
|
|
# Compile
|
2019-06-30 23:36:59 +02:00
|
|
|
make
|
2015-08-10 23:03:47 +02:00
|
|
|
}
|
|
|
|
|
2020-05-20 18:05:18 +02:00
|
|
|
|
2015-08-10 23:03:47 +02:00
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_dir/build"
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|
2020-05-20 23:17:56 +02:00
|
|
|
|