summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abea22380cfafe6e5d79c70726ec8bfe1a6a6369 (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
# Maintainer: Marcin Tydelski <marcin.tydelski@gmail.com> 
# Contributor: Grabli66 <https://launchpad.net/~grabli66-r>

pkgname=translator-bzr
pkgver=r4
pkgrel=1
pkgdesc='Translator developed for Elementary OS desktop.'
arch=('i686' 'x86_64')
url='https://code.launchpad.net/~grabli66-r/+junk/translator'
license=('GPL3')
depends=('gtk3' 'libsoup' 'glib2' 'libgee' 'json-glib' 'glib-networking')
optdepends=()
makedepends=('vala' 'bzr' 'cmake')
provides=("${pkgname%}")
conflicts=("${pkgname%}")
install="${pkgname%-*}.install"
source=('bzr+lp:~grabli66-r/+junk/translator')
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname%-*}
  printf "r%s" "$(bzr revno)"
}

build() {
  cd ${pkgname%-*}

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

package() {
  cd ${pkgname%-*}/build
  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: