From 12095de9e6648565e0f46d1850095c8d3028c516 Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Wed, 12 Jun 2024 12:41:15 +0300 Subject: [PATCH] New package: papers-47.0 --- common/shlibs | 3 ++ srcpkgs/libpapers | 1 + srcpkgs/libpapers-devel | 1 + srcpkgs/nautilus-papers-extension | 1 + srcpkgs/papers/template | 69 +++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 120000 srcpkgs/libpapers create mode 120000 srcpkgs/libpapers-devel create mode 120000 srcpkgs/nautilus-papers-extension create mode 100644 srcpkgs/papers/template diff --git a/common/shlibs b/common/shlibs index 95f5918baf9991..33625689afa10e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4534,3 +4534,6 @@ libsfdo-basedir.so.0 libsfdo-0.1.3_1 libsfdo-desktop.so.0 libsfdo-0.1.3_1 libsfdo-desktop-file.so.0 libsfdo-0.1.3_1 libsfdo-icon.so.0 libsfdo-0.1.3_1 +libppsdocument-4.0.so.5 libpapers-47.0_1 +libppsshell-4.0.so.4 libpapers-47.0_1 +libppsview-4.0.so.4 libpapers-47.0_1 diff --git a/srcpkgs/libpapers b/srcpkgs/libpapers new file mode 120000 index 00000000000000..14c5781df0c44f --- /dev/null +++ b/srcpkgs/libpapers @@ -0,0 +1 @@ +papers \ No newline at end of file diff --git a/srcpkgs/libpapers-devel b/srcpkgs/libpapers-devel new file mode 120000 index 00000000000000..14c5781df0c44f --- /dev/null +++ b/srcpkgs/libpapers-devel @@ -0,0 +1 @@ +papers \ No newline at end of file diff --git a/srcpkgs/nautilus-papers-extension b/srcpkgs/nautilus-papers-extension new file mode 120000 index 00000000000000..14c5781df0c44f --- /dev/null +++ b/srcpkgs/nautilus-papers-extension @@ -0,0 +1 @@ +papers \ No newline at end of file diff --git a/srcpkgs/papers/template b/srcpkgs/papers/template new file mode 100644 index 00000000000000..7ed7ccb349da43 --- /dev/null +++ b/srcpkgs/papers/template @@ -0,0 +1,69 @@ +# Template file for 'papers' +pkgname=papers +version=47.0 +revision=1 +build_style=meson +build_helper="gir rust" +configure_args="$(vopt_feature gir introspection) $(vopt_bool gtk_doc documentation) + -Dcomics=enabled -Ddjvu=enabled -Dpdf=enabled -Dps=enabled -Dtiff=enabled + -Dxps=enabled" +hostmakedepends="AppStream cargo desktop-file-utils gettext glib-devel + gtk4-update-icon-cache itstool pkg-config $(vopt_if gtk_doc gi-docgen)" +makedepends="djvulibre-devel exempi-devel libadwaita-devel libgxps-devel + libsecret-devel libspectre-devel nautilus-devel poppler-glib-devel rust-std" +short_desc="Document viewer for the GNOME desktop" +maintainer="chrysos349 " +license="GPL-2.0-or-later" +homepage="https://apps.gnome.org/Papers" +changelog="https://gitlab.gnome.org/GNOME/Incubator/papers/-/raw/main/NEWS" +distfiles="${GNOME_SITE}/papers/${version/.*/}/papers-${version}.tar.xz" +checksum=cf69eb0a3717fe354011616e2f602383814ff57b7a9eacf306c676e64d8f6666 + +build_options="gir gtk_doc" +build_options_default="gir" + +if [ -z "$CROSS_BUILD" ]; then + build_options_default+=" gtk_doc" +fi + +post_patch() { + if [ "$CROSS_BUILD" ]; then + vsed -i shell-rs/src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / &%" + fi +} + +libpapers_package() { + short_desc+=" - runtime libraries" + pkg_install() { + vmove "usr/lib/*.so.*" + vmove usr/lib/papers + if [ "$build_option_gir" ]; then + vmove usr/lib/girepository-1.0 + fi + } +} + +nautilus-papers-extension_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - nautilus integration" + pkg_install() { + vmove usr/lib/nautilus + } +} + +libpapers-devel_package() { + depends="gtk4-devel libglib-devel libpapers>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/lib/*.so" + vmove usr/include + vmove usr/lib/pkgconfig + if [ "$build_option_gtk_doc" ]; then + vmove usr/share/doc + fi + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi + } +}