summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3f672f11fc222869429dd5c23104ca093b8187d (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Tim Rakowski <tim.rakowski@gmail.com>

pkgname=ignition-cmake-2
pkgver=2.17.1
pkgrel=1
pkgdesc="A set of CMake modules that are used by the C++-based Gazebo projects."
arch=('any')
url="https://gazebosim.org/libs/cmake"
license=('Apache')
depends=('cmake' 'pkg-config' 'ruby-ronn' 'doxygen')
provides=('ignition-cmake=2')
source=("https://github.com/gazebosim/gz-cmake/archive/ignition-cmake2_${pkgver}.tar.gz")
sha256sums=('f8dbadac71540324e0c506b607cefa99e99a8aca997f7af8e67cb486eb610cc0')

_dir="gz-cmake-ignition-cmake2_${pkgver}"

build() {
  cd "$srcdir/$_dir"

  mkdir -p build
  cd build

  cmake .. -Wno-dev \
           -DCMAKE_BUILD_TYPE="Release" \
           -DCMAKE_INSTALL_PREFIX="/usr" \
           -DCMAKE_INSTALL_LIBDIR="lib" \
           -DBUILD_TESTING=OFF

  make
}

package() {
  cd "$srcdir/$_dir/build"
  make DESTDIR="$pkgdir/" install
}