mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 04:04:51 +02:00
meson 1.7.0 and later don't include test build targets in the default build target. With --no-rebuild the test targets aren't build at all. Removing --no-rebuild shouldn't cause any false rebuilds since the files aren't changed between the build() and check() step. Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891 Ref https://github.com/mesonbuild/meson/pull/10413
33 lines
960 B
Text
33 lines
960 B
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libgit2-glib
|
|
pkgver=1.2.1
|
|
pkgrel=0
|
|
pkgdesc="Glib wrapper library around libgit2"
|
|
url="https://wiki.gnome.org/Projects/Libgit2-glib"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends_dev="libgit2-dev"
|
|
makedepends="py3-gobject3-dev vala gobject-introspection-dev meson $depends_dev"
|
|
options="!check" # UTF-8 checks fail in some environments
|
|
subpackages="$pkgname-dev $pkgname-pyc"
|
|
source="https://download.gnome.org/sources/libgit2-glib/${pkgver%.*}/libgit2-glib-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
024b8699f1b5d53e36bef7acb618bddf21f053cde795245b69b8ea2cf681435dc5353cee6e05b189c7fc6395ac3b897de58b671c3bfc0157e00cfbeed53a2261 libgit2-glib-1.2.1.tar.xz
|
|
"
|