aports/testing/xed/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

52 lines
1.2 KiB
Text

# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xed
pkgver=3.8.2
pkgrel=0
pkgdesc="X-Apps Text Editor"
url="https://github.com/linuxmint/xed"
arch="all"
license="GPL-2.0-or-later"
makedepends="
intltool
itstool
libpeas-dev
gobject-introspection-dev
gspell-dev
gtksourceview4-dev
gzip
meson
python3
xapp-dev
"
checkdepends="cage-run"
subpackages="$pkgname-lang $pkgname-dev $pkgname-doc $pkgname-python"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/xed/archive/refs/tags/$pkgver.tar.gz"
options="!check" # needs dogtail
build() {
abuild-meson \
-Db_lto=true \
. output
meson compile -C output
}
check() {
cage-run meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
python() {
depends="$pkgname=$pkgver-r$pkgrel libpeas-python3"
pkgdesc="$pkgdesc (python plugins)"
amove \
usr/lib/xed/plugins/joinlines* \
usr/lib/xed/plugins/open-uri-context-menu* \
usr/lib/xed/plugins/textsize*
}
sha512sums="
4fdcb07c0c363ac95014e028ea9bb506bb3d4abdbde14cacf14f442a219d242c514a67f26b24687ea5f52c8fc5d6c7d12f1cc51ce766ab658ffdf1a177487ac2 xed-3.8.2.tar.gz
"