2015-08-10 23:03:47 +02:00
|
|
|
# Contributor: Mykola Dolhyi <0xb000@gmail.com>
|
|
|
|
pkgname=ignition-math
|
2018-02-24 10:45:26 +01:00
|
|
|
pkgver=4.0.0
|
2017-12-12 20:49:58 +01:00
|
|
|
pkgrel=1
|
2015-08-10 23:03:47 +02:00
|
|
|
pkgdesc="Math classes and functions for robot applications"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://ignitionrobotics.org/"
|
|
|
|
license=('Apache')
|
|
|
|
groups=('development')
|
2018-02-24 10:45:26 +01:00
|
|
|
depends=('gcc-libs')
|
|
|
|
makedepends=('ignition-cmake')
|
2015-08-10 23:03:47 +02:00
|
|
|
optdepends=()
|
|
|
|
conflicts=()
|
2018-02-24 10:45:26 +01:00
|
|
|
source=("https://bitbucket.org/ignitionrobotics/ign-math/get/${pkgname}4_${pkgver}.tar.bz2")
|
|
|
|
sha256sums=('dd24b8d3540f726999f5d6ba9a13a077a5b172e840847491b8e529c53302288a')
|
2015-08-10 23:03:47 +02:00
|
|
|
|
2018-02-24 10:45:26 +01:00
|
|
|
_dir="ignitionrobotics-ign-math-054f8a99081f"
|
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
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-01-04 23:50:39 +01:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/$_dir/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=True
|
2018-01-04 23:50:39 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2015-08-10 23:03:47 +02:00
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_dir/build"
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|