summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Lipp2015-06-15 20:15:39 +0200
committerMoritz Lipp2015-06-15 20:15:39 +0200
commitaa524e203e9320d175e700d0b0510a7ef06bda95 (patch)
tree336ab4e8a97950a310add0b93d9da761e7062fc2
downloadaur-aa524e203e9320d175e700d0b0510a7ef06bda95.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD39
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..44d97a1127e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = bear
+ pkgdesc = tool to generate compilation database for clang tooling
+ pkgver = 2.0.3
+ pkgrel = 1
+ url = https://github.com/rizsotto/Bear
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = make
+ depends = python>=2.7
+ provides = bear
+ conflicts = bear
+ source = https://github.com/rizsotto/Bear/archive/2.0.3.tar.gz
+ md5sums = 3d32f78ca4cce5df220c97b950c7a229
+
+pkgname = bear
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..69028ab02aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Moritz Lipp <mlq@pwmt.org>
+
+pkgname=bear
+_pkgname=Bear
+pkgver=2.0.3
+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' 'make')
+depends=('python>=2.7')
+conflicts=('bear')
+provides=('bear')
+source=(https://github.com/rizsotto/$_pkgname/archive/$pkgver.tar.gz)
+md5sums=('3d32f78ca4cce5df220c97b950c7a229')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ .
+ make all
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ PATH=/usr/bin:$PATH make -k check
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ if [ $CARCH = "x86_64" ]; then
+ mv $pkgdir/usr/lib64 $pkgdir/usr/lib
+ fi
+}