Skip to content

Instantly share code, notes, and snippets.

Created February 19, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2aa6f22a05809e1c719b0805d791506c to your computer and use it in GitHub Desktop.
Save anonymous/2aa6f22a05809e1c719b0805d791506c to your computer and use it in GitHub Desktop.
pkgname=sdformat
pkgver=5.0.0
pkgrel=1
pkgdesc="SDF Converter for gazebo"
arch=('i686' 'x86_64')
url="http://sdformat.org/"
license=('Apache')
depends=('boost' 'tinyxml' 'ignition-math>=2')
makedepends=('cmake' 'doxygen' 'ruby>=1.9.1')
source=("https://bitbucket.org/osrf/sdformat/get/${pkgname}5_${pkgver}.tar.bz2")
sha256sums=('SKIP')
_dir="osrf-sdformat-6e4ddc6ad7be"
prepare(){
cd "$srcdir/$_dir"
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
}
build() {
cd "$srcdir/$_dir/build"
make
}
# check() {
# cd "$srcdir/$_dir/build"
# make test
# }
package() {
cd "$srcdir/$_dir/build"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment