# Generated by scripts/package_gentoo.sh from pubspec.yaml version # 2.0.13 — re-run that script to regenerate, don't hand-edit. EAPI=8 DESCRIPTION="Lịch âm dương Việt Nam, sự kiện và nhắc lịch" HOMEPAGE="https://github.com/kingvhit/lich-am-viet" SRC_URI="https://lichamviet.com/downloads/linux/versions/2.0.13/lich-am-viet-nam-2.0.13-linux-x64.tar.gz -> ${P}.tar.gz" LICENSE="all-rights-reserved" SLOT="0" KEYWORDS="~amd64" # Prebuilt Flutter engine/AOT binaries — stripping them post-fetch can break # the app, and there is nothing here for Gentoo's own mirrors to carry # (closed-source, distributed from our own release page instead). RESTRICT="strip mirror" QA_PREBUILT="opt/*" RDEPEND=" x11-libs/gtk+:3 dev-libs/glib x11-libs/gdk-pixbuf x11-libs/libnotify dev-libs/libayatana-appindicator " S="${WORKDIR}/bundle" src_install() { # lib/ + data/ are Flutter's own bundle layout — the binary expects them # as siblings of itself, so they stay together under /opt rather than # being spread across the usual FHS lib/share split. insinto "/opt/${PN}" doins -r data lib exeinto "/opt/${PN}" doexe lunar_calendar lunar_tray_host dosym "../opt/${PN}/lunar_calendar" "/usr/bin/lunar_calendar" # .desktop entry + full hicolor icon set — same files # linux/CMakeLists.txt already installs into this bundle's own share/ # tree, reused as-is (see scripts/package_linux.sh's .deb step, which # does the identical thing). domenu share/applications/*.desktop for icon_size in 16 32 48 64 128 256 512; do insinto "/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps" doins "share/icons/hicolor/${icon_size}x${icon_size}/apps/"*.png done }