summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCody P Schafer2019-01-27 19:53:37 -0500
committerCody P Schafer2019-01-27 19:53:37 -0500
commit8ec8edd0810c2187787b753309b4e8b609220946 (patch)
treecbe396e2a543ca05190e032dbb0f30d98ebb079a /PKGBUILD
parent91b193f83fb60e49f2e3f6240feeb16fd4388106 (diff)
downloadaur-8ec8edd0810c2187787b753309b4e8b609220946.tar.gz
update to 2.3.13, use ninja, use plain build, use arg to adjust libdir
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 21 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d792981cf8a..eb7f717f69e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,38 +2,42 @@
pkgname=bear
_pkgname=Bear
-pkgver=2.3.12
+pkgver=2.3.13
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')
+makedepends=('cmake' 'ninja')
depends=('python>=2.7')
conflicts=('bear')
provides=('bear')
source=(https://github.com/rizsotto/$_pkgname/archive/$pkgver.tar.gz)
-md5sums=('9e3620c63766d040d71cf942373544d7')
+md5sums=('879e8093b26ad903a3aa1a2a690e052e')
-build() {
+prepare() {
cd "$srcdir/$_pkgname-$pkgver"
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_SYSCONFDIR=/etc \
- .
- make all
+ mkdir -p build
+}
+
+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
}
check() {
- cd "$srcdir/$_pkgname-$pkgver"
- PATH=/usr/bin:$PATH make -k check
+ cd "$srcdir/$_pkgname-$pkgver/build"
+ cmake --build . -- -v check
}
package() {
- cd "$srcdir/$_pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
-
- if [ $CARCH = "x86_64" ]; then
- mv $pkgdir/usr/lib64 $pkgdir/usr/lib
- fi
+ cd "$srcdir/$_pkgname-$pkgver/build"
+ DESTDIR="$pkgdir" cmake --build . -- -v install
}