summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d86eab3a0265cab6fa22b78418e38b5391686ff (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
# Maintainer: Hubert Badocha (badocha.hubert@gmail.com)

pkgname=bear2-git
pkgver=2.4.4.0
pkgrel=1
pkgdesc="Tool to generate compilation database for clang tooling. In version 2."
arch=('i386' 'x86_64')
url="https://github.com/rizsotto/Bear"
license=('GPL3')
makedepends=('git' 'cmake' 'make' 'pkg-config')
depends=('python')
conflicts=('bear' 'bear-git' 'interception-tools')
provides=('bear')
source=("${pkgname}::git+https://github.com/rizsotto/Bear.git")
sha1sums=('SKIP')

prepare() {
    cd "${pkgname}"
    git checkout 2.4.4
}

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
}