summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43b52b4e3260518207cba75a783aa9a70a2a90e6 (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
# Maintainer: archshift
# Maintainer: eidheim

_pkgbase=jucipp
pkgbase=$_pkgbase-git
pkgname=("$_pkgbase-git")
pkgdesc='A lightweight platform-independent C++ IDE'
pkgver=r2120.7d53bca
pkgrel=1

arch=('i686' 'x86_64')
url="https://gitlab.com/cppit/jucipp"
license=('MIT')
depends=('gtksourceviewmm' 'clang' 'aspell-en' 'lldb' 'boost-libs' 'libgit2' 'ctags')
makedepends=('git' 'cmake' 'pkg-config' 'boost') 

source=("$_pkgbase::git+https://gitlab.com/cppit/jucipp.git"
  "git+https://gitlab.com/cppit/libclangmm.git"
  "git+https://gitlab.com/eidheim/tiny-process-library")
sha1sums=('SKIP' 'SKIP' 'SKIP') 

pkgver() {
  cd "$srcdir/$_pkgbase"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

  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
}

package_jucipp-git() {
  cd "$srcdir/$_pkgbase/build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..

  make DESTDIR="$pkgdir" install
  install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}