# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit xdg-utils desktop DESCRIPTION="SoftMaker Office NX binary package" HOMEPAGE="https://www.softmaker.com" SRC_URI="https://www.softmaker.net/down/softmaker-office-nx-${PV//\./-}-amd64.tgz" S="${WORKDIR}" LICENSE="SoftMakerOffice" PAYLOAD="${WORKDIR}/officenx" SLOT="0" KEYWORDS="~amd64" RESTRICT="strip mirror bindist" RDEPEND=" net-misc/curl sys-libs/glibc virtual/opengl dev-libs/glib media-libs/gstreamer media-libs/gst-plugins-base x11-libs/libX11 x11-libs/libXext x11-libs/libXmu x11-libs/libXrandr x11-libs/libXrender " QA_PREBUILT="/opt/softmaker-office-nx/*" src_unpack() { unpack ${A} mkdir "${PAYLOAD}" || die cd "${PAYLOAD}" || die xz -dc "${WORKDIR}/officenx.tar.lzma" | tar xf - || die } src_install() { local install_dir="/opt/softmaker-office-nx" insinto "${install_dir}" doins -r ${PAYLOAD}/* fperms +x \ "${install_dir}/textmaker" \ "${install_dir}/planmaker" \ "${install_dir}/presentations" exeinto /usr/bin cat > "${T}/textmakernx" < "${T}/planmakernx" < "${T}/presentationsnx" <