summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51128d1cf13a987d3855c8981bdb63bcc6d9d339 (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

_name=gtranslator
pkgname=$_name-git
pkgver=3.32.0.r4832.0bdc8aae
pkgrel=1
pkgdesc='Translation Editor, an Enhanced gettext po file editor for the GNOME'
arch=('x86_64')
url='http://projects.gnome.org/gtranslator/'
license=('GPL3')
depends=(gtksourceview4 gspell gettext libgda)
makedepends=(meson gobject-introspection git gtk-doc itstool)
conflicts=($_name)
provides=($_name)
source=("git+https://gitlab.gnome.org/GNOME/$_name")
sha256sums=('SKIP')

pkgver() {
  cd $_name
  v=$(grep -R '^  version:' meson.build | cut -d\' -f2)
  printf "$v.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  rm -rf build
  mkdir build
}

build() {
  meson --prefix /usr --buildtype=plain -Dgtk_doc='true' $_name build
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}