1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/gitg/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
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
2025-05-09 20:48:14 +00:00

69 lines
1.6 KiB
Text

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gitg
pkgver=44
pkgrel=0
pkgdesc="gitg is the GNOME GUI client to view git repositories"
url="https://wiki.gnome.org/Apps/Gitg"
arch="all"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
glib-dev
gobject-introspection-dev
gsettings-desktop-schemas-dev
gspell-dev
gtk+3.0-dev
gtksourceview4-dev
json-glib-dev
libdazzle-dev
libgee-dev
libgit2-glib-dev
libpeas-dev
libsecret-dev
libxml2-dev
meson
libhandy1-dev
vala
gpgme-dev
"
checkdepends="bash xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-pyc"
source="https://download.gnome.org/sources/gitg/${pkgver%.*}/gitg-$pkgver.tar.xz"
prepare() {
default_prepare
if want_check; then
# the test needs a git repository, so we make one here
# (we can't run this on aports since it's too large)
mkdir "$builddir"/tmprepo
cd "$builddir"/tmprepo
git init
# sometimes git fails to guess the email which would cause a failed
# build, this fixes it
git config --local user.name "test commiter"
git config --local user.email "test@example.com"
echo "test" > README.md
git add "README.md"
git commit -m "test commit"
fi
}
build() {
abuild-meson . output
meson compile -C output
}
check() {
cd "$builddir/tmprepo"
xvfb-run -a meson test --print-errorlogs -C ../output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
34eb346790d8ea3e766b84419e75d26888222b602c8f67d934ab37e335762d9c30873a48b0582646dc371533440442bb1941ef2e79a0fe86c7c580111f73db01 gitg-44.tar.xz
"