2020-09-04 20:07:22 +00:00
|
|
|
# Forked from Alpine to apply Purism's mobile patches
|
|
|
|
pkgname=evince
|
2021-07-19 08:44:41 +00:00
|
|
|
pkgver=9999_git20210416
|
2020-09-04 20:07:22 +00:00
|
|
|
pkgrel=0
|
2021-07-19 08:44:41 +00:00
|
|
|
_commit="8bb5c846bbb36bac47fbfba0f0e5a29802d133b8"
|
2020-09-04 20:07:22 +00:00
|
|
|
pkgdesc="simple document viewer for GTK+"
|
|
|
|
url="https://wiki.gnome.org/Apps/Evince"
|
|
|
|
arch="all !s390x !mips !mips64" # Limited by adwaita-icon-theme needing librsvg
|
|
|
|
license="GPL-2.0-or-later"
|
|
|
|
depends="adwaita-icon-theme gsettings-desktop-schemas"
|
|
|
|
depends_dev="gtk+3.0-dev poppler-dev libsm-dev libevent-dev libxrandr-dev
|
|
|
|
libx11-dev libxcursor-dev libxcomposite-dev libxi-dev util-linux-dev
|
2021-07-19 08:44:41 +00:00
|
|
|
tiff-dev gobject-introspection-dev libxml2-dev libspectre-dev libhandy1-dev"
|
2020-09-04 20:07:22 +00:00
|
|
|
makedepends="$depends_dev itstool meson libexecinfo-dev nautilus-dev
|
|
|
|
adwaita-icon-theme-dev gtk-doc yelp-tools appstream-glib-dev
|
|
|
|
libgxps-dev gspell-dev gstreamer-dev libsecret-dev gst-plugins-base-dev"
|
|
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-nautilus $pkgname-libs"
|
|
|
|
source="https://source.puri.sm/Librem5/evince/-/archive/$_commit/evince-$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
|
|
|
# secfixes:
|
|
|
|
# 3.32.0-r1:
|
|
|
|
# - CVE-2019-11459
|
|
|
|
# 3.24.0-r2:
|
|
|
|
# - CVE-2017-1000083
|
|
|
|
|
2021-07-19 08:44:41 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
grep "\.patch$" debian/patches/series \
|
|
|
|
| xargs -I {} -t -r -n1 patch -p1 -i debian/patches/{}
|
|
|
|
}
|
|
|
|
|
2020-09-04 20:07:22 +00:00
|
|
|
build() {
|
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--buildtype=plain \
|
|
|
|
-Dsystemduserunitdir=no \
|
|
|
|
-Dgtk_doc=false \
|
|
|
|
output
|
|
|
|
ninja -C output
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
ninja -C output test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" ninja -C output install
|
|
|
|
}
|
|
|
|
|
|
|
|
nautilus() {
|
|
|
|
pkgdesc="$pkgname (Nautilus extension)"
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel nautilus"
|
|
|
|
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
|
|
mv "$pkgdir"/usr/lib/nautilus "$subpkgdir"/usr/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
libs() {
|
|
|
|
default_libs
|
|
|
|
mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/
|
|
|
|
}
|
|
|
|
|
|
|
|
doc() {
|
|
|
|
default_doc
|
|
|
|
if [ -d "$pkgdir"/usr/share/help ]; then
|
|
|
|
mv "$pkgdir"/usr/share/help "$subpkgdir"/usr/share/
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2021-07-19 08:44:41 +00:00
|
|
|
sha512sums="
|
|
|
|
4af47ad7498f88838f42946fecbd8ac450935c6071a44c9dcc2769ba9896a0e1410bee7dbc16ce977817862ddb19f7992732abbc6726187f4c987d50b2f0ecf5 evince-8bb5c846bbb36bac47fbfba0f0e5a29802d133b8.tar.gz
|
|
|
|
"
|