summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 507c66a2a037ee1b78438a45942fcd1aeee20c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com>

pkgname=codequery
pkgver=0.21.1
pkgrel=1
pkgdesc='A code-understanding, code-browsing or code-search tool.'
arch=(i686  x86_64)
url=http://ruben2020.github.io/codequery/
license=(GPL3)
depends=(qt5-base)
makedepends=(cmake)
optdepends=('cscope: creation of CodeQuery databases'
            'ctags: creation of CodeQuery databases'
#            'python2-pycscope: creation of CodeQuery databases for Python source code'
            'ruby-starscope: creation of CodeQuery databases for Ruby and Go source code')
source=("https://github.com/ruben2020/codequery/archive/v${pkgver}.tar.gz" codequery.desktop)
md5sums=('4ecb79636f76d89599384cc49d04e04b'
         'ad7e15affffa643a29a6afdd47200006')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  mkdir build
  cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' -DBUILD_QT5=ON ..
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"

  make DESTDIR="${pkgdir}" install

  install -D -m 644 "${srcdir}/codequery.desktop" "${pkgdir}/usr/share/applications/codequery.desktop"
  install -D -m 644 "${srcdir}/${pkgname}-${pkgver}/gui/images/logo.png" "${pkgdir}/usr/share/pixmaps/codequery.png"
}