summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1386d9ca4f40e781d2bec95e87100b6226bb5470 (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: Moritz Lipp <mlq@pwmt.org>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

pkgname=bear-git
pkgver=r1053.24d1fc3
pkgrel=1
pkgdesc="Tool to generate compilation database for clang tooling"
arch=('i686' 'x86_64')
url="https://github.com/rizsotto/Bear"
license=('GPL3')
makedepends=('git' 'cmake' 'make' 'pkg-config')
depends=('grpc' 'fmt' 'spdlog' 'nlohmann-json')
conflicts=('bear' 'interception-tools')
provides=('bear')
source=("${pkgname}::git+https://github.com/rizsotto/Bear.git")
sha1sums=('SKIP')

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

build() {
  cd "${pkgname}"

  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
    -DCMAKE_INSTALL_LIBEXECDIR="lib/${pkgname}" \
    .

  make all
}

package() {
  cd "${pkgname}"
  make DESTDIR="$pkgdir/" install
}