From cf9279e0d890d68017e4761344b45e68501aac85 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 28 Jan 2021 10:35:13 +0100 Subject: [PATCH] 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: "???" --- bear/.SRCINFO | 22 ++++++++++++++++++++++ bear/.gitignore | 3 +++ bear/.gitrepo | 12 ++++++++++++ bear/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 bear/.SRCINFO create mode 100644 bear/.gitignore create mode 100644 bear/.gitrepo create mode 100644 bear/PKGBUILD diff --git a/bear/.SRCINFO b/bear/.SRCINFO new file mode 100644 index 0000000..e626142 --- /dev/null +++ b/bear/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = bear + pkgdesc = tool to generate compilation database for clang tooling + pkgver = 3.0.7 + pkgrel = 1 + url = https://github.com/rizsotto/Bear + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = ninja + makedepends = nlohmann-json + depends = grpc + depends = fmt + depends = spdlog + provides = bear + conflicts = bear + conflicts = interception-tools + source = Bear-3.0.7.tar.gz::https://github.com/rizsotto/Bear/archive/3.0.7.tar.gz + sha256sums = 90004c7f8c83b81b3c6d9a1dced83e6cc212f60a1d1434b934ae0cf0045b3193 + +pkgname = bear + diff --git a/bear/.gitignore b/bear/.gitignore new file mode 100644 index 0000000..924dfb9 --- /dev/null +++ b/bear/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.tar.* diff --git a/bear/.gitrepo b/bear/.gitrepo new file mode 100644 index 0000000..7b1cbfe --- /dev/null +++ b/bear/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/bear + branch = master + commit = 8a8847175fd5e10797759841db6e407ba07f87c5 + parent = 6517fdbe98fd60036daec4ab50ba1c76529e3af6 + method = merge + cmdver = 0.4.3 diff --git a/bear/PKGBUILD b/bear/PKGBUILD new file mode 100644 index 0000000..26b1f9d --- /dev/null +++ b/bear/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Yiyao Yu +# Contributor: Moritz Lipp + +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 +}