summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD45
2 files changed, 26 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4c07d400bf34..a08cffe829bd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
pkgbase = bear
pkgdesc = tool to generate compilation database for clang tooling
- pkgver = 2.3.13
+ pkgver = 3.0.18
pkgrel = 1
url = https://github.com/rizsotto/Bear
arch = i686
arch = x86_64
+ arch = aarch64
license = GPL3
makedepends = cmake
- makedepends = ninja
- depends = python>=2.7
+ depends = grpc
+ depends = fmt
+ depends = spdlog
+ depends = nlohmann-json
provides = bear
conflicts = bear
- source = bear-2.3.13.tar.gz::https://github.com/rizsotto/Bear/archive/2.3.13.tar.gz
- md5sums = 879e8093b26ad903a3aa1a2a690e052e
+ source = Bear-3.0.18.tar.gz::https://github.com/rizsotto/Bear/archive/3.0.18.tar.gz
+ sha256sums = ae94047c79b4f48462b66981f66a67b6a833d75d4c40e7afead491b1865f1142
pkgname = bear
-
diff --git a/PKGBUILD b/PKGBUILD
index 0766f74ba933..94607b9fb7fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,34 @@
-# Maintainer: Moritz Lipp <mlq@pwmt.org>
+# Maintainer: Yiyao Yu <yuydevel at protonmail dot com>
+# Contributor: Moritz Lipp <mlq@pwmt.org>
pkgname=bear
_pkgname=Bear
-pkgver=2.3.13
+pkgver=3.0.18
pkgrel=1
pkgdesc="tool to generate compilation database for clang tooling"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/rizsotto/Bear"
license=('GPL3')
-makedepends=('cmake' 'ninja')
-depends=('python>=2.7')
+makedepends=('cmake')
+depends=('grpc' 'fmt' 'spdlog' 'nlohmann-json')
conflicts=('bear')
provides=('bear')
-source=(bear-$pkgver.tar.gz::https://github.com/rizsotto/$_pkgname/archive/$pkgver.tar.gz)
-md5sums=('879e8093b26ad903a3aa1a2a690e052e')
-
-prepare() {
- cd "$srcdir/$_pkgname-$pkgver"
- mkdir -p build
-}
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/rizsotto/$_pkgname/archive/$pkgver.tar.gz")
+sha256sums=('ae94047c79b4f48462b66981f66a67b6a833d75d4c40e7afead491b1865f1142')
build() {
- cd "$srcdir/$_pkgname-$pkgver/build"
- cmake \
- -GNinja \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_SYSCONFDIR=/etc \
- -DCMAKE_BUILD_TYPE=plain \
- -DCMAKE_INSTALL_LIBDIR=/usr/lib \
- ..
- cmake --build . -- -v
-}
+ 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 \
+ .
-check() {
- cd "$srcdir/$_pkgname-$pkgver/build"
- cmake --build . -- -v check
+ make all
}
package() {
- cd "$srcdir/$_pkgname-$pkgver/build"
- DESTDIR="$pkgdir" cmake --build . -- -v install
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ DESTDIR="${pkgdir}" make install
}