diff options
author | Triss Healy | 2021-11-04 17:08:27 +1100 |
---|---|---|
committer | Triss Healy | 2021-11-04 17:08:27 +1100 |
commit | a2c77f6aa437d802dc4f87e643933f82183b1513 (patch) | |
tree | 0c5513557645b305512931d2545f33b24ca31029 | |
parent | aeab5e347d2be4d349f0f9063a655a97e8406f69 (diff) | |
download | aur-a2c77f6aa437d802dc4f87e643933f82183b1513.tar.gz |
Fixed up package
Explicitly added protobuf-c runtime dependcy.
Updated pkgver confirm to VCS pkgver guidelines.
Added xorg-server-xvfb for running automated tests.
Cleaned up pkgname var to avoid /-git/ in var.
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 14 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = libshumate-git pkgdesc = GTK4 widget to display maps (git version) - pkgver = 0.0 + pkgver = r262.ec65526 pkgrel = 1 url = https://wiki.gnome.org/Projects/libshumate arch = x86_64 @@ -11,11 +11,12 @@ pkgbase = libshumate-git makedepends = gi-docgen makedepends = meson makedepends = vala + makedepends = xorg-server-xvfb depends = gtk4 depends = libsoup depends = sqlite + depends = protobuf-c provides = libshumate - provides = libshumate-0.0.so source = git+https://gitlab.gnome.org/GNOME/libshumate.git sha256sums = SKIP @@ -1,38 +1,37 @@ # Maintainer: Triss Healy (trissylegs) <th at trissyle dot gs> -pkgname=libshumate-git +_pkgname=libshumate +pkgname=${_pkgname}-git +pkgver=r262.ec65526 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") +depends=(gtk4 libsoup sqlite protobuf-c) +makedepends=(git gobject-introspection gtk-doc gi-docgen meson vala xorg-server-xvfb) +provides=(libshumate) -source=("git+https://gitlab.gnome.org/GNOME/${pkgname/-git/}.git") +source=("git+https://gitlab.gnome.org/GNOME/${_pkgname}.git") sha256sums=('SKIP') # Use version once repo has been tagged. But use revision numbers for now. pkgver() { - cd "$pkgname" + 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 + arch-meson ${_pkgname} build -D gtk_doc=true ninja -C build } check() { - meson test -C build --print-errorlogs + # Run tests with headless x11 server. + xvfb-run meson test -C build --print-errorlogs } package() { |