summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 415fa06b4121c8fc9184507bbe9da41c1c648db1 (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
41
42
# Maintainer: acxz <akashpatel2008 at yahoo dot com>

pkgname=ignition-rendering
pkgver=6.4.0
pkgrel=2
pkgdesc="C++ library designed to provide an abstraction for different rendering
engines. It offers unified APIs for creating 3D graphics applications."
arch=('x86_64')
url="https://gazebosim.org/libs/rendering"
license=('Apache')
depends=('ignition-common' 'ignition-math' 'ignition-plugin' 'ogre=1.9')
makedepends=('cmake' 'ignition-cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gazebosim/gz-rendering/archive/${pkgname}6_${pkgver}.tar.gz"
        "exchange.patch::https://patch-diff.githubusercontent.com/raw/gazebosim/gz-rendering/pull/650.patch")
sha256sums=('8159b14758ac2741f83f8e247613941a94148addd40585a454091a4d7a9a4c21'
            'SKIP')

_dir="gz-rendering-${pkgname}6_${pkgver}"

prepare() {
  cd "${srcdir}/$_dir"
  patch -p1 -i "${srcdir}/exchange.patch"
}

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

  mkdir -p build
  cd build

  cmake .. -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
}