Initial commit (based on ignition-math-hg)

This commit is contained in:
Benjamin Chrétien 2015-08-10 23:03:47 +02:00
commit 09dadac281
2 changed files with 62 additions and 0 deletions

19
.SRCINFO Normal file
View file

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

43
PKGBUILD Normal file
View file

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