diff options
author | acxz | 2020-05-21 09:00:11 -0400 |
---|---|---|
committer | Felix Exner | 2020-09-01 16:37:00 +0200 |
commit | 93866d0913b7bce964e7b6714bc48a383801211f (patch) | |
tree | 6a515bd6733dd26a740bb2d29ef0bff4cf95b0e1 | |
download | aur-93866d0913b7bce964e7b6714bc48a383801211f.tar.gz |
create package
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1a54274b2d36 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ros-melodic-franka-description + pkgdesc = ROS - franka_description contains URDF files and meshes of Franka Emika robots. + pkgver = 0.6.0 + pkgrel = 1 + url = h + arch = i686 + arch = x86_64 + arch = aarch64 + arch = armv7h + arch = armv6h + license = Apache 2.0 + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-melodic-catkin + depends = ros-melodic-xacro + source = ros-melodic-franka-description-0.6.0.tar.gz::https://github.com/frankaemika/franka_ros-release/archive/release/melodic/franka_description/0.6.0.tar.gz + sha256sums = e4d3322ea002ca83c536e9c251faaf8e5814fdd6913a90432471e4af75ab57bf + +pkgname = ros-melodic-franka-description + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9adf2b8410a7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Script generated with create_pkgbuild.py +# For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3 +pkgdesc="ROS - franka_description contains URDF files and meshes of Franka Emika robots." +url='h' + +pkgname='ros-melodic-franka-description' +pkgver='0.6.0' +arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h') +pkgrel=1 +license=('Apache 2.0') + +ros_makedepends=( + ros-melodic-catkin +) + +makedepends=( + 'cmake' 'ros-build-tools' + ${ros_makedepends[@]} +) + +ros_depends=( + ros-melodic-xacro +) + +depends=( + ${ros_depends[@]} +) + +_dir="franka_ros-release-release-melodic-franka_description" +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/frankaemika/franka_ros-release/archive/release/melodic/franka_description/${pkgver}.tar.gz") +sha256sums=('e4d3322ea002ca83c536e9c251faaf8e5814fdd6913a90432471e4af75ab57bf') + + +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_BUILD_BINARY_PACKAGE=ON \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \ + -DPYTHON_EXECUTABLE=/usr/bin/python3 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |