summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f500acf8638271e370dbb7ce31a568fb11a11db (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
# Maintainer: Romain Chardiny <romain.chardiny@gmail.com>
_basename=drone-monitor
pkgname=${_basename}-git
pkgver=r44.f315867
pkgrel=1
pkgdesc="Monitor your drone like a pro"
arch=('x86_64')
url="https://github.com/puceaulytech/drone-monitor"
license=('MIT')
groups=()
depends=('qt6-3d' 'qt6-base')
makedepends=('git' 'cmake') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${_basename}")
conflicts=("${_basename}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/puceaulytech/drone-monitor.git')
noextract=()
md5sums=('SKIP')

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

build() {
  cmake -B build -S "${_basename}" \
      -DCMAKE_BUILD_TYPE='None' \
      -DCMAKE_INSTALL_PREFIX='/usr' \
      -Wno-dev
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}