aports/community/gedit-plugins/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

60 lines
1.3 KiB
Text

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=gedit-plugins
pkgver=48.2
pkgrel=0
pkgdesc="Collection of plugins for the gedit text editor"
url="https://gitlab.gnome.org/World/gedit/gedit/blob/master/plugins/list-of-gedit-plugins.md"
arch="all"
license="GPL-2.0-only"
depends="
gucharmap
libpeas-python3
python3
py3-dbus
py3-gobject3
vte3
"
makedepends="
gedit-dev
glib-dev
gtk+3.0-dev
gucharmap-dev
itstool
libgedit-gtksourceview-dev
libgit2-glib-dev
libpeas-dev
py3-dbus-dev
vte3-dev
meson
"
checkdepends="appstream-glib"
subpackages="$pkgname-lang $pkgname-doc"
source="https://gitlab.gnome.org/GNOME/gedit-plugins/-/archive/$pkgver/gedit-plugins-$pkgver.tar.gz"
build() {
abuild-meson . output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
python3 -m compileall -fq "$pkgdir"/usr/lib/gedit
}
pyc() {
default_pyc
find usr/lib/gedit/plugins -type d -name __pycache__ | \
while IFS="$(printf '\n')" read -r path; do
amove "$path"
done
}
sha512sums="
bbe1ed7c9a727307be639916d238a1c7e5c8203c2e35a6376e97b6f00bf21e02a30cb1bbd71a9202d26d04a25cbea337a4b3a8031b05fec8fafdfc7917608a4f gedit-plugins-48.2.tar.gz
"