diff options
author | Anselmo L. S. Melo | 2016-05-20 16:50:16 -0300 |
---|---|---|
committer | Anselmo L. S. Melo | 2016-05-20 16:51:39 -0300 |
commit | 40334982480de06f3dc13a3f8ead47c356e53112 (patch) | |
tree | 17a188c828bddc99913e3e6c72fcc594734da1f1 | |
download | aur-gazebo-sitl-git.tar.gz |
Initial PKGBUILD for Gazebo-SITL plugin
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 43 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..38f909065064 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Fri May 20 19:51:34 UTC 2016 +pkgbase = gazebo-sitl-git + pkgdesc = A ROS-independent Gazebo plugin for Ardupilot's SITL. + pkgver = r1.bc1e6f1 + pkgrel = 1 + url = https://github.com/01org/gazebo-sitl.git + arch = x86 + arch = x86_64 + license = Apache-2.0 + makedepends = git + makedepends = python2 + depends = mavproxy-git + depends = gazebo + provides = gazebo-sitl + provides = gzsitl + source = gazebo-sitl::git+https://github.com/01org/gazebo-sitl.git + md5sums = SKIP + +pkgname = gazebo-sitl-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..18197b0d14a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg/ +/src/ +*.tar.* +/gazebo-sitl/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c536e6c5d736 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Anselmo L. S. Melo <anselmo.melo@intel.com> +pkgname=gazebo-sitl-git +pkgver=r1.bc1e6f1 +pkgrel=1 +pkgdesc="A ROS-independent Gazebo plugin for Ardupilot's SITL." +arch=('x86' 'x86_64') +url="https://github.com/01org/gazebo-sitl.git" +license=('Apache-2.0') +groups=() +depends=('mavproxy-git' 'gazebo') +makedepends=('git' 'python2') #ardupilot +provides=("${pkgname%-git}" "gzsitl") +source=('gazebo-sitl::git+https://github.com/01org/gazebo-sitl.git') +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" +# Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname%-git}" + git submodule update --init + mkdir -p gzsitl/build +} + +build() { + cd "$srcdir/${pkgname%-git}/gzsitl/build" + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make +} + +package() { + cd "$srcdir/${pkgname%-git}" +# make DESTDIR="$pkgdir/" install + mkdir -p $pkgdir/usr/lib/gazebo-7/plugins + mkdir -p $pkgdir/usr/share/gazebo-7/{worlds,models} + cp gzsitl/build/libgzsitl_plugin.so "$pkgdir/usr/lib/gazebo-7/plugins/" + cp world/gzsitl_drone_target.world "$pkgdir/usr/share/gazebo-7/worlds/" + cp -r models/gzsitl_target "$pkgdir/usr/share/gazebo-7/models/" +} |