aports/community/evince/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

88 lines
1.7 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=evince
pkgver=48.0
pkgrel=1
pkgdesc="Simple document viewer for GTK+"
url="https://apps.gnome.org/Evince"
arch="all"
license="GPL-2.0-or-later"
depends="
adwaita-icon-theme
gsettings-desktop-schemas
"
depends_dev="
gobject-introspection-dev
gtk+3.0-dev
libspectre-dev
libxml2-dev
poppler-dev
tiff-dev
"
makedepends="
$depends_dev
adwaita-icon-theme-dev
cairo-dev
dbus-dev
desktop-file-utils
djvulibre-dev
gdk-pixbuf-dev
glib-dev
gnome-desktop-dev
gspell-dev
gst-plugins-base-dev
gstreamer-dev
itstool
libarchive-dev
libhandy1-dev
libsecret-dev
meson
"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/evince/${pkgver%%.*}/evince-$pkgver.tar.xz"
# secfixes:
# 3.32.0-r1:
# - CVE-2019-11459
# 3.24.0-r2:
# - CVE-2017-1000083
build() {
abuild-meson \
-Db_lto=true \
-Dsystemduserunitdir=no \
-Dgtk_doc=false \
. output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
nautilus() {
pkgdesc="$pkgname (Nautilus extension)"
install_if="$pkgname=$pkgver-r$pkgrel nautilus"
amove usr/lib/nautilus
}
libs() {
default_libs
mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/
}
doc() {
default_doc
if [ -d "$pkgdir"/usr/share/help ]; then
amove usr/share/help
fi
}
sha512sums="
bae616989f339e4d4204e8bb3eafd2d05d5a16a4fe3e658fbdbb2d92c541b75edc1afe89d624f9d0345ffe181598b6b9315f1902d5c5cc34419fd714eb65dfdf evince-48.0.tar.xz
"