Skip to content

Instantly share code, notes, and snippets.

@ankitrgadiya
Last active January 9, 2022 21:04
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 ankitrgadiya/8144fbd0611928446450d8a1ef4228ac to your computer and use it in GitHub Desktop.
Save ankitrgadiya/8144fbd0611928446450d8a1ef4228ac to your computer and use it in GitHub Desktop.
smclib fix
diff '--color=auto' --unified --recursive --text bond_core/smclib/package.xml bond_core.new/smclib/package.xml
--- bond_core/smclib/package.xml 2022-01-10 02:21:04.187157016 +0530
+++ bond_core.new/smclib/package.xml 2022-01-10 02:16:40.986046532 +0530
@@ -5,14 +5,7 @@
<package format="3">
<name>smclib</name>
<version>1.8.6</version>
- <description>
- The State Machine Compiler (SMC) from http://smc.sourceforge.net/
- converts a language-independent description of a state machine
- into the source code to support that state machine.
-
- This package contains the libraries that a compiled state machine
- depends on, but it does not contain the compiler itself.
- </description>
+ <description>The State Machine Compiler (SMC) from http://smc.sourceforge.net/ converts a language-independent description of a state machine into the source code to support that state machine. This package contains the libraries that a compiled state machine depends on, but it does not contain the compiler itself.</description>
<maintainer email="michael@openrobotics.org">Michael Carroll</maintainer>
<license>Mozilla Public License Version 1.1</license>
Only in bond_core.new/smclib: venv
# Script generated with import_catkin_packages.py.
# For more information: https://github.com/bchretien/arch-ros-stacks.
pkgdesc="ROS - The State Machine Compiler (SMC) from https://smc.sourceforge.net/ converts a language-independent description of a state machine into the source code to support that state machine."
url='http://smc.sourceforge.net/'
pkgname='ros-noetic-smclib'
pkgver='1.8.6'
arch=('any')
pkgrel=1
license=('Mozilla Public License Version 1.1')
ros_makedepends=(
ros-noetic-catkin
)
makedepends=(
'cmake'
'ros-build-tools'
${ros_makedepends[@]}
)
ros_depends=(
)
depends=(
${ros_depends[@]}
)
_dir="bond_core-${pkgver}/smclib"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros/bond_core/archive/${pkgver}.tar.gz" "01-setuptools.patch")
sha256sums=('33ec23816b57630c449b4a629504bd0112eeef5cee15652b3759ab11088a1e81'
'49ff1c401ec4595d1454d0ac5f6e8b9415bd360e9c6f02548120cf9c1b84679b')
prepare() {
cd "bond_core-$pkgver"
patch --forward --strip=1 --input="${srcdir}/01-setuptools.patch"
}
build() {
# Use ROS environment variables.
source /usr/share/ros-build-tools/clear-ros-env.sh
[ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash
# Create the build directory.
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
# Build the project.
cmake ${srcdir}/${_dir} \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \
-DPYTHON_EXECUTABLE=/usr/bin/python \
-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