Files
gentoo-zh/dev-util/fvm/fvm-3.2.1.ebuild
T
2025-10-23 13:48:21 +08:00

33 lines
762 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit wrapper
DESCRIPTION="Flutter Version Management"
HOMEPAGE="https://github.com/leoafarias/fvm https://fvm.app"
SRC_URI="
https://github.com/leoafarias/fvm/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://minio.dream-universe.org/posts/distfiles/${P}-pubcache.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="dev-lang/dart"
src_compile() {
export PUB_CACHE=pubcache
dart --disable-analytics
dart pub get --offline
dart compile aot-snapshot -o bin/fvm.snapshot bin/main.dart
}
src_install() {
insinto /usr/$(get_libdir)
doins bin/fvm.snapshot
make_wrapper fvm "/usr/bin/dartaotruntime /usr/$(get_libdir)/fvm.snapshot"
}