# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/cgit/cgit.conf # Copyright (C) 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- var_append makeopt ' ' 'all' hook_add prepatch 5 cgit_extract_git [ "$SDECFG_LIBC" = musl ] && export NO_REGEX=NeedsStartEnd cgit_extract_git() { rm -rf git/ # supplied version needs to be the same indicated in cgit's Makefile tar -C $builddir/$pkg-$ver $taropt $(match_source_file -p | grep -v cgit) && \ mv git-*/ git }