summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Chr├ętien2015-06-21 15:38:24 +0900
committerBenjamin Chr├ętien2015-06-21 15:38:24 +0900
commit1230d797c3e0898e1d15ae30d446255808adf4d9 (patch)
treec38c161cab16bc6e4c17bb13376e8882d4781aa7
downloadaur-1230d797c3e0898e1d15ae30d446255808adf4d9.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD40
-rw-r--r--soname.patch40
3 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a82112f0931
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = urdfdom
+ pkgdesc = The URDF (U-Robot Description Format) library provides core data structures and a simple XML parsers for populating the class data structures from an URDF file.
+ pkgver = 0.3.0
+ pkgrel = 5
+ url = https://github.com/ros/urdfdom
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ depends = boost
+ depends = tinyxml
+ depends = console-bridge
+ depends = urdfdom-headers
+ source = urdfdom::git+https://github.com/ros/urdfdom.git#tag=0.3.0
+ source = soname.patch
+ md5sums = SKIP
+ md5sums = ec2aeff2e5cc0d4dba6010bf7a33e81a
+
+pkgname = urdfdom
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8334ec31c7d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
+pkgname=urdfdom
+pkgver=0.3.0
+pkgrel=5
+pkgdesc="The URDF (U-Robot Description Format) library provides core data structures and a simple XML parsers for populating the class data structures from an URDF file."
+arch=('i686' 'x86_64')
+url="https://github.com/ros/urdfdom"
+license=('BSD')
+depends=( 'boost' 'tinyxml' 'console-bridge' 'urdfdom-headers')
+makedepends=('git' 'cmake')
+
+_gitroot=https://github.com/ros
+_gitrepo=urdfdom
+
+_tag=${pkgver}
+_dir=${_gitrepo}
+source=("${_dir}"::"git+${_gitroot}/${_gitrepo}.git"#tag=${_tag}
+ "soname.patch")
+md5sums=('SKIP'
+ 'ec2aeff2e5cc0d4dba6010bf7a33e81a')
+
+build() {
+ cd ${srcdir}/${_dir}
+ patch -p1 -i ${srcdir}/soname.patch
+
+ # Create build directory
+ rm -rf ${srcdir}/build && mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/soname.patch b/soname.patch
new file mode 100644
index 00000000000..33c376b5cea
--- /dev/null
+++ b/soname.patch
@@ -0,0 +1,40 @@
+From e35d6f6156c6aa04ab6639ec57f49616b12b731a Mon Sep 17 00:00:00 2001
+From: Jose Luis Rivero <jrivero@osrfoundation.org>
+Date: Mon, 24 Mar 2014 21:34:46 +0100
+Subject: [PATCH] Fix soname versions
+
+---
+ urdf_parser/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/urdf_parser/CMakeLists.txt b/urdf_parser/CMakeLists.txt
+index cd23331..7ce2429 100644
+--- a/urdf_parser/CMakeLists.txt
++++ b/urdf_parser/CMakeLists.txt
+@@ -2,19 +2,19 @@ include_directories(include)
+
+ add_library(urdfdom_world SHARED src/pose.cpp src/model.cpp src/link.cpp src/joint.cpp src/world.cpp)
+ target_link_libraries(urdfdom_world ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
+-set_target_properties(urdfdom_world PROPERTIES SOVERSION 0.2)
++set_target_properties(urdfdom_world PROPERTIES SOVERSION 0.3)
+
+ add_library(urdfdom_model SHARED src/pose.cpp src/model.cpp src/link.cpp src/joint.cpp)
+ target_link_libraries(urdfdom_model ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
+-set_target_properties(urdfdom_model PROPERTIES SOVERSION 0.2)
++set_target_properties(urdfdom_model PROPERTIES SOVERSION 0.3)
+
+ add_library(urdfdom_sensor SHARED src/urdf_sensor.cpp)
+ target_link_libraries(urdfdom_sensor urdfdom_model ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
+-set_target_properties(urdfdom_sensor PROPERTIES SOVERSION 0.2)
++set_target_properties(urdfdom_sensor PROPERTIES SOVERSION 0.3)
+
+ add_library(urdfdom_model_state SHARED src/urdf_model_state.cpp src/twist.cpp)
+ target_link_libraries(urdfdom_model_state ${tinyxml_libraries} ${console_bridge_LIBRARIES} ${Boost_LIBRARIES})
+-set_target_properties(urdfdom_model_state PROPERTIES SOVERSION 0.2)
++set_target_properties(urdfdom_model_state PROPERTIES SOVERSION 0.3)
+
+ # --------------------------------
+
+--
+1.9.3
+