summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b9da1d06cb3dfbaeabead27c76ad30ccb55d2f4 (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
50
# Contributor: Max Devaine <max@devaine.cz>
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=code-eli-git
pkgver=r821.f9ff74f
pkgrel=2
pkgdesc='Collection of C++ libraries that provide a variety of functionalities.'
arch=('i686' 'x86_64')
url='https://github.com/ramcdona/Code-Eli'
license=('EPL 1.0')
depends=('eigen')
optdepends=('cpptest: unit tests'
            'doxygen: documentation')
makedepends=('cmake' 'git')
_name=Code-Eli
provides=('code-eli')
conflicts=('')
source=("git+https://github.com/ramcdona/Code-Eli.git")
md5sums=('SKIP')

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

_buildtype="Release"

build() {

  msg "Starting CMake (build type: ${_buildtype})"

  cd "${srcdir}/${_name}/"

  cmake . \
    -DCMAKE_PREFIX_PATH='/usr' \
    -DCMAKE_INSTALL_PREFIX='/usr'

  msg "Building the project"
  make
}


package() {
  msg "Installing files"

  mkdir $pkgdir/usr
  cp -a $srcdir/${_name}/include $pkgdir/usr/
  chown -R root:root $pkgdir/usr
  chmod -R 755 $pkgdir/usr
}