* yet more dir-less .cache DEP updates
[t2sde.git] / package / go / oh-my-posh / oh-my-posh.conf
blob1d4b361b2c7f49f9b56d31d5f789b3e26ee03e0e
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/oh-my-posh/oh-my-posh.conf
3 # Copyright (C) 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 export CGO_ENABLED=1
14 var_append goconfopt ' ' "-o $pkg"
15 var_remove GCC_WRAPPER_REMOVE ' ' '-gdwarf*'
17 omp_conf() {
18         cd src
19         sed -i "s/= \"development\"/= \"${ver}\"/g" main.go
21 hook_add preconf 5 'omp_conf'
23 omp_install() {
24         mkdir -pv $root$datadir/$pkg
25         cp -v $pkg $root$bindir/
26         cp -rv ../themes $root$datadir/$pkg/
28 hook_add postmake 5 'omp_install'