2021-01-28 09:35:13 +00:00
|
|
|
# Maintainer: Yiyao Yu <yuydevel at protonmail dot com>
|
|
|
|
# Contributor: Moritz Lipp <mlq@pwmt.org>
|
|
|
|
|
|
|
|
pkgname=bear
|
|
|
|
_pkgname=Bear
|
2021-03-06 08:54:22 +00:00
|
|
|
pkgver=3.0.8
|
2021-01-28 09:35:13 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="tool to generate compilation database for clang tooling"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/rizsotto/Bear"
|
|
|
|
license=('GPL3')
|
|
|
|
makedepends=('cmake' 'ninja' 'nlohmann-json')
|
|
|
|
depends=('grpc' 'fmt' 'spdlog')
|
|
|
|
conflicts=('bear' 'interception-tools')
|
|
|
|
provides=('bear')
|
|
|
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/rizsotto/$_pkgname/archive/$pkgver.tar.gz")
|
2021-03-06 08:54:22 +00:00
|
|
|
sha256sums=('663ef2fcf359e1efb20831fae3901a3edbbb906dd0bc5e62af92e353651c5cec')
|
2021-01-28 09:35:13 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
|
|
-DCMAKE_INSTALL_LIBEXECDIR="lib/${pkgname}" \
|
|
|
|
-DENABLE_UNIT_TESTS=OFF \
|
|
|
|
-DENABLE_FUNC_TESTS=OFF \
|
|
|
|
.
|
|
|
|
|
|
|
|
make all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
|
|
DESTDIR="${pkgdir}" make install
|
|
|
|
|
|
|
|
# Workaround for including compile dir in package
|
|
|
|
rm -rf "${pkgdir}${srcdir}"
|
|
|
|
find "${pkgdir}" -empty -type d -delete
|
|
|
|
}
|