summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b90b4d7553bce928ff1c1d182723602fdaad0899 (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>
pkgname=ardupilot-gazebo-sitl-git
pkgver=r38.350dcbb
pkgrel=1
pkgdesc="Gazebo plugin for Ardupilot's SITL."
arch=('x86_64')
url='https://ardupilot.org/dev/docs/using-gazebo-simulator-with-sitl.html'
license=('GPLv3')
depends=('gazebo')
optdepends=('ardupilot-sitl')
makedepends=('cmake' 'git')
provides=('ardupilot-gazebo-sitl')
_pkgname=ardupilot-gazebo-stil
source=("${_pkgname}::git+https://github.com/khancyr/ardupilot_gazebo.git")
sha256sums=('SKIP')

pkgver() {
	cd "${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    mkdir -p ${srcdir}/${_pkgname}/build
    cd ${srcdir}/${_pkgname}/build

	cmake .. -Wno-dev \
        -DCMAKE_BUILD_TYPE="Release" \
        -DCMAKE_INSTALL_PREFIX="/usr" \

    make
}

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