Skip to content

Instantly share code, notes, and snippets.

@jhbruhn
Last active January 16, 2020 18:34
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 jhbruhn/61f86f93ffd2349a595a73d9bd1821f6 to your computer and use it in GitHub Desktop.
Save jhbruhn/61f86f93ffd2349a595a73d9bd1821f6 to your computer and use it in GitHub Desktop.
# Script generated with create_pkgbuild.py
# For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3
pkgdesc="ROS - Provides a cmake config for the default version of Gazebo for the ROS distribution."
url='http://gazebosim.org/tutorials?cat=connect_ros'
pkgname='ros-melodic-gazebo-dev'
pkgver='2.8.6'
arch=('any')
pkgrel=1
license=('Apache 2.0')
ros_makedepends=(ros-melodic-catkin)
makedepends=('cmake' 'ros-build-tools'
${ros_makedepends[@]}
)
ros_depends=()
depends=(${ros_depends[@]}
gazebo)
_dir="gazebo_ros_pkgs-release-release-melodic-gazebo_dev"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/gazebo_ros_pkgs-release/archive/release/melodic/gazebo_dev/${pkgver}.tar.gz")
sha256sums=('4f9c464529a72e3ae361214c8196c86c4266b7d43f8a490eb778df394a7008a7')
build() {
# Use ROS environment variables
source /usr/share/ros-build-tools/clear-ros-env.sh
[ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
# Create build directory
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
# Fix Python2/Python3 conflicts
/usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
# Build project
cmake ${srcdir}/${_dir} \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_ENABLE_TESTING=0 \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
-DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
-DPYTHON_BASENAME=.cpython-38 \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}
# Script generated with create_pkgbuild.py
# For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3
pkgdesc="ROS - Message and service data structures for interacting with Gazebo from ROS."
url='https://gazebosim.org/tutorials?cat=connect_ros'
pkgname='ros-melodic-gazebo-msgs'
pkgver='2.8.6'
arch=('any')
pkgrel=1
license=('BSD')
ros_makedepends=(ros-melodic-std-srvs
ros-melodic-message-generation
ros-melodic-std-msgs
ros-melodic-trajectory-msgs
ros-melodic-geometry-msgs
ros-melodic-catkin
ros-melodic-sensor-msgs)
makedepends=('cmake' 'ros-build-tools'
${ros_makedepends[@]}
)
ros_depends=(ros-melodic-std-srvs
ros-melodic-std-msgs
ros-melodic-trajectory-msgs
ros-melodic-geometry-msgs
ros-melodic-sensor-msgs
ros-melodic-message-runtime)
depends=(${ros_depends[@]}
)
# Tarball version (faster download)
_dir="gazebo_ros_pkgs-release-release-melodic-gazebo_msgs"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/gazebo_ros_pkgs-release/archive/release/melodic/gazebo_msgs/${pkgver}.tar.gz")
sha256sums=('6742eb2c359a9ba4cd9afba34dc813123bcdfcfdfff71c9e1b08915c576bebd2')
build() {
# Use ROS environment variables
source /usr/share/ros-build-tools/clear-ros-env.sh
[ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
# Create build directory
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
# Fix Python2/Python3 conflicts
/usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
# Build project
cmake ${srcdir}/${_dir} \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_ENABLE_TESTING=0 \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
-DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
-DPYTHON_BASENAME=.cpython-38 \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}
# Script generated with create_pkgbuild.py
# For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3
pkgdesc="ROS - Provides ROS plugins that offer message and service publishers for interfacing with Gazebo through ROS."
url='h'
pkgname='ros-melodic-gazebo-ros'
pkgver='2.8.6'
arch=('any')
pkgrel=1
license=('Apache 2.0')
ros_makedepends=(ros-melodic-std-srvs
ros-melodic-tf
ros-melodic-cmake-modules
ros-melodic-roslib
ros-melodic-std-msgs
ros-melodic-geometry-msgs
ros-melodic-dynamic-reconfigure
ros-melodic-gazebo-msgs
ros-melodic-gazebo-dev
ros-melodic-roscpp
ros-melodic-catkin
ros-melodic-rosgraph-msgs)
makedepends=('cmake' 'ros-build-tools'
${ros_makedepends[@]}
tinyxml)
ros_depends=(ros-melodic-std-srvs
ros-melodic-tf
ros-melodic-roslib
ros-melodic-std-msgs
ros-melodic-geometry-msgs
ros-melodic-dynamic-reconfigure
ros-melodic-gazebo-msgs
ros-melodic-gazebo-dev
ros-melodic-roscpp
ros-melodic-rosgraph-msgs)
depends=(${ros_depends[@]}
tinyxml
python)
# Tarball version (faster download)
_dir="gazebo_ros_pkgs-release-release-melodic-gazebo_ros"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/gazebo_ros_pkgs-release/archive/release/melodic/gazebo_ros/${pkgver}.tar.gz")
sha256sums=('dd726804bedfbcf0f5f1a25f250890d710d4d0ccd30e4ff9847884ef130700ca')
build() {
# Use ROS environment variables
source /usr/share/ros-build-tools/clear-ros-env.sh
[ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
# Create build directory
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
# Fix Python2/Python3 conflicts
/usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
# Build project
cmake ${srcdir}/${_dir} \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_ENABLE_TESTING=0 \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
-DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
-DPYTHON_BASENAME=.cpython-38 \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment