summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cd4254362ca48d9ae7538aff1c3d8e928d2783c (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
# Maintainer: Ignacy KuchciƄski (ignapk) <ignacykuchcinski@gmail.com>

pkgname=libgweather-git
_pkgname=libgweather
pkgver=40.beta.r12.g7a94017f
pkgrel=1
pkgdesc="Location and timezone database and weather-lookup library"
url="https://wiki.gnome.org/Projects/LibGWeather"
arch=(x86_64)
license=(LGPL)
depends=(libsoup gtk3 geocode-glib dconf)
makedepends=(python-gobject gobject-introspection vala git gtk-doc glade meson)
provides=(libgweather-3.so libgweather)
conflicts=(libgweather)
source=("git+https://gitlab.gnome.org/GNOME/libgweather.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $_pkgname
}

build() {
  arch-meson $_pkgname build -D gtk_doc=true
  meson compile -C build
}

check() {
  # Test fails without fr_FR.UTF-8 locale
  meson test -C build --print-errorlogs || :
}

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