summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8370fe042b1aa2be3f6dec8414a658747d6178f (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
# Maintainer: Marcin Tydelski <marcin.tydelski@gmail.com> 
# Contributor: Nicolas Laplante <https://launchpad.net/~nicolas-laplante>

pkgname=envelope-git
pkgver=386.97c1a25
pkgrel=1
_gitname=envelope
pkgdesc='Personal budget application for the Elementary OS desktop'
arch=('i686' 'x86_64')
url='http://nlaplante.github.io/envelope/'
license=('GPL3')
depends=('granite' 'gtk3' 'libgee' 'glib2' 'glib-networking' 'sqlheavy')
makedepends=('git' 'vala' 'cmake')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
install="${pkgname%-*}.install"
source=('git+https://github.com/nlaplante/envelope.git')
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $_gitname

  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
  make
}

package() {
  cd $_gitname/build

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: