Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pkgname=sdformat
pkgver=4.2.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=("http://osrf-distributions.s3.amazonaws.com/${pkgname}/releases/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('75e2d053f97ca33456109b4d7794e6b7d26deef59c778f0d9e25d1369b24b094')
prepare(){
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make
}
# check() {
# cd "${srcdir}/${pkgname}-${pkgver}/build"
# make test
# }
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make DESTDIR="$pkgdir/" install
}
@mimoralea

This comment has been minimized.

Copy link

mimoralea commented Feb 3, 2017

Thanks for this, for future reference, is there any way to directly install from this PKGBUILD? I edited the PKGBUILD when installing sdformat, but it seems kinda hacky.

@justbuchanan

This comment has been minimized.

Copy link
Owner Author

justbuchanan commented Feb 3, 2017

Sure thing. I'd recommend checking out this page on the arch wiki: https://wiki.archlinux.org/index.php/Arch_User_Repository#Build_and_install_the_package. You can download the PKGBUILD from my gist and use makepkg to build and install the package.

Note that I don't maintain this file - it will likely be out of date soon if it isn't already.

@mimoralea

This comment has been minimized.

Copy link

mimoralea commented Feb 3, 2017

Thanks, yeah, you are right. There is a version 5.0.0 already and Gazebo 8.0.0. Pretty hard to install, oh well.

@StripedMonkey

This comment has been minimized.

Copy link

StripedMonkey commented Feb 4, 2017

Lord I had a nightmare of a time trying to get gazebo up and running. Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.