summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3821a3f8b9465e7944f9e933e80df30dae4b620e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
pkgname=urdfdom
pkgver=0.3.0
pkgrel=6
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=('any')
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
}