From 09dadac281d68709c9911f8024018946f91351f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= Date: Mon, 10 Aug 2015 23:03:47 +0200 Subject: [PATCH] Initial commit (based on ignition-math-hg) --- .SRCINFO | 19 +++++++++++++++++++ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..45605e00266 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ignition-math + pkgdesc = Math classes and functions for robot applications + pkgver = 1.0.0 + pkgrel = 1 + url = http://ignitionrobotics.org/ + arch = i686 + arch = x86_64 + groups = development + license = Apache + makedepends = cmake + makedepends = ruby-ronn + makedepends = pkg-config>=0.28 + provides = ignition-math2 + replaces = ignition-math2 + source = http://gazebosim.org/distributions/ign-math/releases/ignition-math-1.0.0.tar.bz2 + sha256sums = 5c15bbafdab35d1e0b2f9e43ea13fc665e29c19530c94c89b92a86491128b30a + +pkgname = ignition-math + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..ccf49a36df1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor: Mykola Dolhyi <0xb000@gmail.com> +pkgname=ignition-math +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Math classes and functions for robot applications" +arch=('i686' 'x86_64') +url="http://ignitionrobotics.org/" +license=('Apache') +groups=('development') +depends=() +makedepends=('cmake' 'ruby-ronn' 'pkg-config>=0.28') +optdepends=() +provides=('ignition-math2') +conflicts=() +replaces=('ignition-math2') +#changelog= +source=("http://gazebosim.org/distributions/ign-math/releases/$pkgname-$pkgver.tar.bz2") +#noextract=() +sha256sums=('5c15bbafdab35d1e0b2f9e43ea13fc665e29c19530c94c89b92a86491128b30a') +#validpgpkeys=() + +_dir="$pkgname-$pkgver" + +build() { + cd "$srcdir/$_dir" + + mkdir -p build + cd build + + # Configure build + cmake .. -DCMAKE_BUILD_TYPE="Release" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + -DENABLE_TESTS_COMPILATION:BOOL=False + + # Compile + make +} + +package() { + cd "$srcdir/$_dir/build" + make DESTDIR="$pkgdir/" install +}