summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d51b4c49feeef82c189fc638d8b26c9d9d45be9f (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
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
# Maintainer: fusion809 <CONTACT via comments at https://aur.archlinux.org/packages/jucipp>
# Maintainer: eidheim
# Contributor: archshift

pkgname=jucipp
glab="https://gitlab.com"
cpp="$glab/cppit"
pkgdesc='A lightweight cross-platform C++ IDE'
pkgver=1.8.0
pkgrel=1
arch=('x86_64')
url="$cpp/jucipp"
license=('MIT')
depends=('gtksourceviewmm' 'clang' 'aspell-en' 'lldb' 'boost-libs' 'libgit2' 'ctags')
makedepends=('git' 'cmake' 'pkg-config' 'boost')
source=("$pkgname::git+$url.git#tag=v${pkgver}"
  "git+$cpp/libclangmm.git"
  "git+$glab/eidheim/tiny-process-library")
sha1sums=('SKIP'
          'SKIP'
          'SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --tags `git rev-list --tags --max-count=1` | sed 's/v//g'
}

prepare() {
  cd "$srcdir/$pkgname"

  git submodule init
  git config submodule.libclangmm.url "$srcdir/lib/libclangmm"
  git config submodule.tiny-process-library.url "$srcdir/lib/tiny-process-library"
  git submodule update

  mkdir -p build
}

build() {
  cd "$srcdir/$pkgname/build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..
}

package() {
  cd "$srcdir/$pkgname/build"
  make DESTDIR="$pkgdir" install
  install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}