fvm 4.0.5

Flutter Version Management

Не проверено
 1# Example of Staplerfile
 2# Check stplr.dev/staplerfile for a documentation.
 3name=fvm
 4version=4.0.5 # upstream version
 5release=1
 6summary="Flutter Version Management"
 7#group="Other" # See /usr/lib/rpm/GROUPS for valid values
 8desc="Flutter Version Management:
 9A simple CLI to manage Flutter SDK versions."
10maintainer="vovk4morkovk4 <vovk4morkovk4@yandex.ru>"
11# Array of Go arches (go tool dist list | cut -d/ -f2 | sort | uniq) or "all"
12architectures=("amd64")
13homepage="https://fvm.app/"
14license=("MIT")
15
16provides=()
17conflicts=()
18
19sources=(
20	"https://github.com/leoafarias/fvm/releases/download/$version/$name-$version-linux-x64.tar.gz"
21)
22
23checksums=(
24	sha256:8f8baeb018a9bb10f196d3f1d86b77998959662048d6cd909887e2527b5575ca
25)
26
27# Dependencies needs for build
28# If you use auto_req=1 you must
29# list runtime dependencies here
30build_deps=(
31
32)
33
34# Runtime dependencies
35deps=(
36	git
37	glibc
38	unzip
39	bash
40)
41
42# Automatically generate runtime dependencies and provided symbols
43#auto_req=1
44#auto_prov=1
45
46# prepare(): Unpacks and prepares the sources
47#prepare() {}
48
49# build(): Compiles or builds the software from source.
50# Since Aides is for proprietary software, it looks superfluous.
51#build() {}
52
53# package(): Installs the built files into the package directory (pkgdir).
54package() {
55	install-binary "$name/$name"
56	install -Dm644 -t "${pkgdir}/usr/share/licenses/${name}" "fvm/src/LICENSE"
57
58}
59
60# files(): Lists all files to be included in the final package.
61files() {
62	files-find-binary fvm
63	files-find \
64		#"/opt/**/*" \
65		#"/opt/**/.* " \
66		"/usr/share/licenses/**/*"
67}