summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelChou2018-08-02 13:44:42 +0800
committerMichaelChou2018-08-02 13:44:42 +0800
commitab50f32564d7812db2b62e0feda6761a534511d2 (patch)
treed4e1c8702011d4250ed500e99ef5f1f60642ad23
downloadaur-ab50f32564d7812db2b62e0feda6761a534511d2.tar.gz
0.8.0
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD56
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..64b8234cf41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ros-melodic-socketcan-interface
+ pkgdesc = Generic CAN interface description with helpers for filtering and driver implementation. Further a socketcan implementation based on boost::asio is included.
+ pkgver = 0.8.0
+ pkgrel = 1
+ url = http://wiki.ros.org/socketcan_interface
+ arch = any
+ license = LGPL3
+ makedepends = cmake
+ makedepends = ros-build-tools
+ depends = boost
+ depends = linux-headers
+ depends = ros-melodic-class-loader
+ source = ros_canopen-0.8.0.tar.gz::https://github.com/ros-industrial/ros_canopen/archive/0.8.0.tar.gz
+ sha256sums = b822d2a70eb273076d7dfde847bd52593d6577503207beb98a43b96855f64250
+
+pkgname = ros-melodic-socketcan-interface
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e58b2c01a96
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: michaelchou <michaeljchou at the hotmail domain which is .com>
+# Contributor: michaelchou <michaeljchou at the hotmail domain which is .com>
+
+pkgname=ros-melodic-socketcan-interface
+_pkgname=socketcan_interface
+pkgdesc='Generic CAN interface description with helpers for filtering and driver implementation. Further a socketcan implementation based on boost::asio is included.'
+url="http://wiki.ros.org/${_pkgname}"
+
+pkgver=0.8.0
+pkgrel=1
+arch=('any')
+license=('LGPL3')
+
+_parent_pkgname="ros_canopen"
+_dir="ros_canopen-${pkgver}"
+source=("${_parent_pkgname}-${pkgver}.tar.gz::https://github.com/ros-industrial/ros_canopen/archive/${pkgver}.tar.gz")
+sha256sums=('b822d2a70eb273076d7dfde847bd52593d6577503207beb98a43b96855f64250')
+
+ros_makedepends=(
+)
+makedepends=(cmake ros-build-tools ${ros_makedepends[@]})
+
+ros_depends=(
+ ros-melodic-class-loader
+)
+depends=(boost linux-headers ${ros_depends[@]})
+
+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
+
+# # Fix Python2/Python3 conflicts
+# /usr/share/ros-build-tools/fix-python-scripts.sh -v 2 ${srcdir}/${_dir}
+
+ # Create build directory
+ [ -d ${srcdir}/build ] || mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
+
+ # Build project
+ cmake ${srcdir}/${_dir}/${_pkgname} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+# -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+# -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+# -DPYTHON_BASENAME=-python2.7 \
+# -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR="${pkgdir}/" install
+}