]> Netolish git repositories - gentoo-repo.git/commitdiff
Doplněn xdg_desktop_database_update do pkg_postinst a pkg_postrm.
authorJiří Netolický <netolish@netolish.cz>
Sun, 20 Aug 2023 11:02:27 +0000 (13:02 +0200)
committerJiří Netolický <netolish@netolish.cz>
Sun, 20 Aug 2023 11:02:27 +0000 (13:02 +0200)
gui-apps/swayimg/swayimg-1.12-r1.ebuild [new file with mode: 0644]

diff --git a/gui-apps/swayimg/swayimg-1.12-r1.ebuild b/gui-apps/swayimg/swayimg-1.12-r1.ebuild
new file mode 100644 (file)
index 0000000..77c1534
--- /dev/null
@@ -0,0 +1,62 @@
+
+EAPI=8
+
+inherit meson xdg-utils
+#
+DESCRIPTION="Image viewer for Sway/Wayland"
+
+HOMEPAGE="https://github.com/artemsen/swayimg"
+
+SRC_URI="https://github.com/artemsen/swayimg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE="wayland gif heif jpeg jpegxl openexr png svg tiff webp"
+
+RDEPEND="
+       heif? ( media-libs/libheif:= )
+       jpeg? ( media-libs/libjpeg-turbo:= )
+       jpegxl? ( media-libs/libjxl:= )
+       png? ( media-libs/libpng:= )
+       svg? ( gnome-base/librsvg:= )
+       tiff? ( media-libs/tiff:= )
+       webp? ( media-libs/libwebp:= )
+       openexr? ( media-libs/openexr:= )
+"
+
+DEPEND="${RDEPEND}"
+
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature heif)
+               $(meson_feature jpeg)
+               $(meson_feature png)
+               $(meson_feature svg)
+               $(meson_feature tiff)
+               $(meson_feature webp)
+       )
+       meson_src_configure
+}
+
+src_compile() {
+       meson_src_compile
+}
+
+src_install() {
+       meson_install
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}