summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15646fb2f056968df05bc8507d5f521797d39123 (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
# Contributor: Max Devaine <max@devaine.cz>

pkgname=code-eli-git
pkgver=20140913
pkgrel=1
pkgdesc='Collection of C++ libraries that provide a variety of functionalities.'
arch=(i686 x86_64)
url='https://github.com/ddmarshall/Code-Eli'
license=('EPL 1.0')
makedepends=('cmake' 'git')
depends=('')
provides=('code-eli')
conflicts=('')
groups=('')

_gitroot="https://github.com/ddmarshall/Code-Eli.git"
_gitname="Code-Eli"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d "$srcdir/$_gitname" ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"

  msg "Configure Code-Eli..."
  cd "$srcdir/$_gitname/"

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


package() {
  mkdir $pkgdir/usr
  cp -a $srcdir/$_gitname/include $pkgdir/usr/
  chown -R root:root $pkgdir/usr
  chmod -R 755 $pkgdir/usr
}