# vim: set shiftwidth=3: # Maintainer: Adrian Bacircea # Contributor: Lukas Werling pkgname=sourceweb pkgver=r401.148955d pkgrel=2 pkgdesc="Source code indexer and code navigation tool for C/C++ code." arch=('x86_64') url="https://github.com/rprichard/sourceweb" license=('BSD') depends=('qt5-base' 'python') makedepends=('llvm' 'clang') source=("${pkgname}::git+https://github.com/rprichard/sourceweb") sha256sums=('SKIP') pkgver() { cd "${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "${pkgname}" # Fix usage of /usr/libexec/ sed -i "s#/libexec#/lib/${pkgname}#" config.pri btrace/sw-btrace } build() { cd "${pkgname}" ./configure --prefix="/usr" --with-qmake=/usr/bin/qmake-qt5 # Fix broken include path generated by qmake. sed -i 's#-isystem /usr/include##' clang-indexer/Makefile make } package() { cd "${pkgname}" make INSTALL_ROOT=${pkgdir} install install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" }