archpkgs/bear/PKGBUILD
Gabriel Ebner cf9279e0d8 git subrepo clone --branch=master https://aur.archlinux.org/bear
subrepo:
  subdir:   "bear"
  merged:   "8a88471"
upstream:
  origin:   "https://aur.archlinux.org/bear"
  branch:   "master"
  commit:   "8a88471"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-01-28 10:35:13 +01:00

39 lines
1.1 KiB
Bash

# Maintainer: Yiyao Yu <yuydevel at protonmail dot com>
# Contributor: Moritz Lipp <mlq@pwmt.org>
pkgname=bear
_pkgname=Bear
pkgver=3.0.7
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")
sha256sums=('90004c7f8c83b81b3c6d9a1dced83e6cc212f60a1d1434b934ae0cf0045b3193')
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
}