blob: c996dd04f3b1e6b125095a1283d0931217b696bc (
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
|
# Maintainer: Triss Healy (trissylegs) <th at trissyle dot gs>
pkgname=libshumate-git
pkgrel=1
pkgdesc="GTK4 widget to display maps (git version)"
arch=(x86_64)
url="https://wiki.gnome.org/Projects/libshumate"
license=(LGPL)
depends=(gtk4 libsoup sqlite)
makedepends=(git gobject-introspection gtk-doc gi-docgen meson vala)
provides=("libshumate")
source=("git+https://gitlab.gnome.org/GNOME/${pkgname/-git/}.git")
sha256sums=('SKIP')
# Use version once repo has been tagged. But use revision numbers for now.
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd ${pkgname/-git/}
}
build() {
arch-meson ${pkgname/-git/} build -D gtk_doc=true
ninja -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C build
}
|