# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit eutils autotools DESCRIPTION="Free messaging app for services like WhatsApp, Slack, Messenger and many more" HOMEPAGE="http://meetfranz.com/" SRC_URI_AMD64="https://github.com/imprecision/franz-app/releases/download/${PV}/Franz-linux-x64-${PV}.tgz" SRC_URI_X86="https://github.com/imprecision/franz-app/releases/download/${PV}/Franz-linux-ia32-${PV}.tgz" SRC_URI=" amd64? ( ${SRC_URI_AMD64} ) " LICENSE="Apache-2.0" SRC_URI="https://github.com/imprecision/franz-app/releases/download/${PV}/Franz-linux-x64-${PV}.tgz" SLOT='0' KEYWORDS="~amd64" RESTRICT="mirror" S="${WORKDIR}" src_unpack() { unpack ${A} } src_install() { dodir /usr/share/Franz/ cp -R "${WORKDIR}/*" "${D}/usr/share/Franz" || die "Install failed!" dolib "${WORKDIR}/libnode.so" dolib "${WORKDIR}/libffmpeg.so" domenu "${FILESDIR}/franz.desktop" doicon "${WORKDIR}/resources/app.asar.unpacked/assets/franz.png" dodir /usr/bin dosym /usr/share/Franz/Franz /usr/bin/Franz }