commit:     e107981914aea1737278ddad6dc62f90f5c2dfb0
Author:     Samuel Bernardo <samuelbernardo <AT> tecnico <DOT> ulisboa <DOT> pt>
AuthorDate: Mon Aug 15 21:50:06 2016 +0000
Commit:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Mon Aug 15 21:50:06 2016 +0000
URL:        https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=e1079819

mattermost-desktop tested and working

 net-im/mattermost-desktop/Manifest                 |  2 +-
 .../mattermost-desktop-1.3.0.ebuild                | 32 ++++++++++++++++------
 2 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/net-im/mattermost-desktop/Manifest 
b/net-im/mattermost-desktop/Manifest
index 2e93b2d..ef9c260 100644
--- a/net-im/mattermost-desktop/Manifest
+++ b/net-im/mattermost-desktop/Manifest
@@ -1,2 +1,2 @@
 DIST mattermost-desktop-1.3.0.tar.gz 923509 SHA256 
4a37253d2b3cc6b396c6e22bbf1ba20eb5144f1836f8fe1acedebd47e155326e SHA512 
2947cab9f22adcb737a272f5998ed725143e13414cc1874085895db815ab1c4e5251af3ca8c49fc6f9c60d432cb35260537b8fbe46a212ab64d043624eee9c34
 WHIRLPOOL 
84dee52f41f3478864746987fe3c6d3a479bb2108ba76d22b0f10002c95262f14511e8921b96322f87d5c38e6c5c8a6dc8e915661bb903bed2768bfbb61e6772
-EBUILD mattermost-desktop-1.3.0.ebuild 1197 SHA256 
5f21c2d568c6f44256cf70e14dcc969fc543b26e58311ac0f57e890d0fdb077b SHA512 
5c6d245af2e75e8c24876a1bea69ed98a19ba751691871d6d817677458c7d888b931fb2332790abe4ab9b23af152bc8d898994074755e86434d24a3774dc7502
 WHIRLPOOL 
8ccd060923b825235736312bb329a158b393db85ab818c37747c2c148c08bd6e31b1fde20e1ad0140dc1732a26e6c9308b15ae234c5e892d66bb44da5b2f660f
+EBUILD mattermost-desktop-1.3.0.ebuild 1574 SHA256 
a1601f276ed9a0b41a8e6ec29f13de0f5cf1db492552ff37db6fd9f9e62d96bc SHA512 
a07f6f2822d698a353554737bd6ed1651212d6fb10ed15b746989c86f9586d7485736bdb3331b2118498069060849dfac05b3353cb90d1735554e5e0b970bd23
 WHIRLPOOL 
245106bb99e103d3e94a5f365d000d076e621823738274fc6c9879f78e164c1688acbd87a9caad982af2ec80dee71c97c804c15c82f11252f4c8104ccf1e5b8e

diff --git a/net-im/mattermost-desktop/mattermost-desktop-1.3.0.ebuild 
b/net-im/mattermost-desktop/mattermost-desktop-1.3.0.ebuild
index 8bbf2eb..bdd36e0 100644
--- a/net-im/mattermost-desktop/mattermost-desktop-1.3.0.ebuild
+++ b/net-im/mattermost-desktop/mattermost-desktop-1.3.0.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/mattermost/desktop/archive/v${PV}.tar.gz -> ${P}.tar
 
 LICENSE="MIT"
 SLOT="1"
-KEYWORDS=""
+KEYWORDS="x86 amd64"
 IUSE=""
 
 DEPEND="
@@ -25,6 +25,9 @@ RDEPEND="
        !net-im/mattermost
 "
 
+MY_P="${P/mattermost-/}"
+S="${WORKDIR}/${MY_P}"
+
 src_compile() {
        default
 
@@ -33,13 +36,26 @@ src_compile() {
 }
 
 src_install() {
-       cp -R "${WORKDIR}" "${D}/usr/lib/mattermost" || die "Install failed!"
-
-       ln -s "/usr/lib/mattermost/Mattermost" "${D}/usr/bin/mattermost" || die 
"Install failed!"
-
-       #cp "${WORKDIR}/LICENSE" "${D}/usr/share/licenses/${PN}/LICENSE" || die 
"Install failed!"
-
-       cp "${WORKDIR}/src/resources/appicon.png" 
"${D}/usr/share/pixmaps/${PN}.png" || die "Install failed!"
+       dodir /usr/lib
+       if use amd64; then
+               _release="Mattermost-linux-x64"
+       elif use x86; then
+               _release="Mattermost-linux-ia32"
+       else
+               die "Architecture not supported!"
+       fi
+       cp -R "${S}/release/${_release}" "${D}usr/lib/mattermost" || die 
"Install failed!"
+
+       dodir /usr/bin
+       fperms a+x /usr/lib/mattermost/Mattermost
+       dosym "/usr/lib/mattermost/Mattermost" "/usr/bin/mattermost" || die 
"Install failed!"
+
+       #cp "${S}/LICENSE" "${D}usr/share/licenses/${PN}/LICENSE" || die 
"Install failed!"
+
+       dodir /usr/share/pixmaps
+       #cp "${S}/src/resources/appicon.png" "${D}usr/share/pixmaps/${PN}.png" 
|| die "Install failed!"
+       insinto /usr/share/pixmaps
+       newins "src/resources/appicon.png" "${PN}.png"
        make_desktop_entry /usr/bin/mattermost "Mattermost Desktop" ${PN} 
"GNOME;GTK;Network;InstantMessaging;" || die "Install failed!"
 }
 

Reply via email to