[arch-commits] Commit in bear/repos (community-x86_64 community-x86_64/PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Jan 19 17:02:22 UTC 2022
Date: Wednesday, January 19, 2022 @ 17:02:22
Author: grawlinson
Revision: 1110500
archrelease: copy trunk to community-x86_64
Added:
bear/repos/community-x86_64/
bear/repos/community-x86_64/PKGBUILD
(from rev 1110499, bear/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: bear/repos/community-x86_64/PKGBUILD (from rev 1110499, bear/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-01-19 17:02:22 UTC (rev 1110500)
@@ -0,0 +1,47 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Yiyao Yu <yuydevel at protonmail dot com>
+# Contributor: Moritz Lipp <mlq at pwmt.org>
+
+pkgname=bear
+pkgver=3.0.18
+pkgrel=2
+pkgdesc="A tool to generate compilation database for clang tooling"
+arch=('x86_64')
+url="https://github.com/rizsotto/Bear"
+license=('GPL3')
+depends=('grpc' 'fmt' 'spdlog' 'nlohmann-json')
+makedepends=('git' 'cmake')
+checkdepends=('gtest' 'python' 'llvm')
+_commit='275ac3ea4d3907eb194995d5e16f6f9b204c4600'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --tags
+}
+
+prepare() {
+ cmake \
+ -B build \
+ -S "$pkgname" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_LIBEXECDIR="lib/$pkgname"
+}
+
+build() {
+ cmake --build build
+}
+
+check() {
+ cd "$pkgname"
+ # Bear runs tests alongside build. As to why this function even exists,
+ # turn your attention to `man PKGBUILD` and look up checkdepends.
+ # > These dependencies are only considered when the check() function is
+ # > present and is to be run by makepkg.
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
More information about the arch-commits
mailing list