Hi! Please find attached clockify-1.4.2.ebuild and a patch so that it fixes application icon for X system Install Clockify on your computer and track time from your desktop. Sergey
Created attachment 568932 [details] clockify-1.4.2.ebuild here is an ebuild
Created attachment 568934 [details, diff] clockify-desktop-r1.patch it is a patch for desktop icon
Created attachment 568936 [details] metadata.xml here is a metadata for the package.
Comment on attachment 568932 [details] clockify-1.4.2.ebuild ># Copyright 1999-2018 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI=6 Why not EAPI=7? > >inherit eutils unpacker > ># Binary only distribution >QA_PREBUILT="*" > >DESCRIPTION="Install Clockify on your computer and track time from your desktop." 1. PN should not appear in DESCRIPTION 2. Should not end with a dot 3. Does not match upstream oneliner from website >HOMEPAGE="https://clockify.me/" >SRC_URI=" > amd64? ( https://clockify.me/downloads/Clockify_Setup_1_4_2.deb -> ${P}_x86_64.rpm ) >" >LICENSE="CLOCKIFY" >SLOT="0" >KEYWORDS="~amd64" > >S=${WORKDIR} >PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" ) > >RDEPEND=" > gnome-base/gconf > dev-libs/libappindicator > x11-libs/libXtst > dev-libs/nss > x11-libs/libXScrnSaver >" > >src_unpack(){ > unpack_deb ${A} >} > >src_install() { > > insinto /usr/ > doins -r usr/share/ > > insinto / > doins -r opt/ > fperms 0755 /opt/Clockify/clockify > dosym /opt/Clockify/clockify /usr/local/bin/clockify /usr/local should not be used for portage-installed packages. Either put the symlink in /usr/bin or set up a wrapper script or add the path to PATH through env.d. > > domenu usr/share/applications/clockify.desktop > doicon usr/share/icons/hicolor/64x64/apps/clockify.png >} You're installing a desktop entry and icon, so you should run xdg_icon_cache_update and xdg_desktop_database_update in these functions: >pkg_postrm() { > rm -f /usr/local/bin/clockify 1. Whitespace at end of line. 2. The symlink is already registered as part of the installed package so you should not need to remove it manually. >} > >pkg_postinst() { > dosym /opt/Clockify/clockify /usr/local/bin/clockify You already do this in src_install(). >}
Hi, currently busy, will fix in few days
Comment on attachment 568932 [details] clockify-1.4.2.ebuild Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit eutils unpacker desktop xdg-utils # Binary only distribution QA_PREBUILT="*" DESCRIPTION="The only truly free time tracker for teams" HOMEPAGE="https://clockify.me/" SRC_URI=" amd64? ( https://clockify.me/downloads/Clockify_Setup_1_4_2.deb -> ${P}_x86_64.rpm ) " LICENSE="CLOCKIFY" SLOT="0" KEYWORDS="~amd64" S=${WORKDIR} PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" ) RDEPEND=" gnome-base/gconf dev-libs/libappindicator x11-libs/libXtst dev-libs/nss x11-libs/libXScrnSaver " src_unpack(){ unpack_deb ${A} } src_install() { insinto /usr/ doins -r usr/share/ insinto / doins -r opt/ fperms 0755 /opt/Clockify/clockify dosym /opt/Clockify/clockify /usr/bin/clockify domenu usr/share/applications/clockify.desktop doicon usr/share/icons/hicolor/64x64/apps/clockify.png } pkg_postinst() { xdg_icon_cache_update xdg_desktop_database_update } pkg_postrm() { xdg_icon_cache_update xdg_desktop_database_update }
Comment on attachment 568936 [details] metadata.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> <email>sergey.glazyrin.dev@gmail.com</email> <name>Sergey Glazyrin</name> </maintainer> <longdescription lang="en"> Install Clockify on your computer and track time from your desktop. </longdescription> </pkgmetadata>
(In reply to Jeroen Roovers from comment #4) hi, thank you for your notes, it is done
hi @Jeroen Could you please let me know your thoughts ?
Created attachment 659440 [details] 9999 version of clockify cause they distribute package without version This is new version of clockify.
Created attachment 659442 [details] use tabs instead of spaces.