diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest index 0795acd..fe30134 100644 --- a/app-editors/zed/Manifest +++ b/app-editors/zed/Manifest @@ -1 +1 @@ -DIST zed-1.1.7-amd64.tar.gz 142214827 BLAKE2B bdf88fcf8da08855fb430c2beef09b45b5af5278357c3f510c0bb1fcc9bee308a583b34902aee0ee185c605607b4d4c1f42c8965a4473fd6210819bc96f950cc SHA512 a1793ca9f0f73b1f007c9bc843361b5568d20d67011c178fcfe3c717b2d01949a5f92219591db47ec2a5d8441589c193d4cf3a5b47dbdf74dbb90c797361d9f4 +DIST zed-1.1.8-amd64.tar.gz 142224700 BLAKE2B 2f81510c40f904a403eba5934ed84d8b93929ca43b0d53f43ee6c4f1e1c4384cc6afb4c9a06e263a39bd2887f6289e3a0792fdbad10d5acda52c8a387960d594 SHA512 ed40919f74fe704124b7c4e354b0f560282e315e6a0f6ecbe574ef9a9fb9b55685471708418f083979b95a3f692afb163212ec906f0d6fcb97c11749f737542e diff --git a/app-editors/zed/zed-1.1.7.ebuild b/app-editors/zed/zed-1.1.8.ebuild similarity index 67% rename from app-editors/zed/zed-1.1.7.ebuild rename to app-editors/zed/zed-1.1.8.ebuild index 51496bf..d3b2453 100644 --- a/app-editors/zed/zed-1.1.7.ebuild +++ b/app-editors/zed/zed-1.1.8.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit desktop pax-utils +inherit desktop pax-utils xdg-utils MY_PN="${PN/-bin}" MY_P=${MY_PN}-${PV} @@ -35,17 +35,27 @@ DOCS=( ) QA_PRESTRIPPED="opt/${MY_PN}/bin" QA_SONAME="opt/${MY_PN}/lib" +src_prepare() { + default + sed -i 's!Exec=zed!Exec=zedit!g' share/applications/* +} + pkg_setup(){ use amd64 && S="${WORKDIR}/zed.app" } src_install(){ pax-mark m code - mkdir -p "${D}/opt/${MY_PN}" - cp -r . "${D}/opt/${MY_PN}/" + mkdir -p "${D}/opt/${MY_PN}" "${D}/usr/share" + cp -r bin lib libexec licenses.md "${D}/opt/${MY_PN}/" + cp -r share "${D}/usr/" dosym "/opt/${MY_PN}/bin/zed" "/usr/bin/zedit" - make_desktop_entry "${MY_PN}" "Zed Editor" "${MY_PN}" "Utility;TextEditor;Development;IDE" - newicon "${S}/share/icons/hicolor/512x512/apps/zed.png" ${MY_PN}.png + newicon "${S}/share/icons/hicolor/512x512/apps/zed.png" zed.png einstalldocs } +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} +