void-packages/common/environment/setup-subpkg/subpkg.sh
Enno Boland 6eb37e35b2 common: merge only_for_archs and noarch=yes into one.
* noarch=yes is replaced with archs=noarch
* only_for_archs= is renamed to archs=
* archs= allows the use of wildcards and negations; first matching rule applies:
  * archs="*-musl" will build the pkg only for musl-libcs
  * archs="~*-musl" will build the pkg only on non-musl-libc
  * archs="x86_64-musl ~*-musl" will build for x86_64-musl and any non-musl
    arch.
* archs= defaults to "*"
2019-02-15 13:19:44 +01:00

45 lines
1.2 KiB
Bash

# This shell snippet unsets all variables/functions that can be used in
# a package template and can also be used in subpkgs.
## VARIABLES
unset -v conf_files mutable_files preserve triggers alternatives
unset -v depends run_depends replaces provides conflicts tags
# hooks/post-install/03-strip-and-debug-pkgs
unset -v nostrip nostrip_files
# hooks/pre-pkg/04-generate-runtime-deps
unset -v noverifyrdeps skiprdeps allow_unknown_shlibs shlib_requires
# hooks/pre-pkg/06-prepare-32bit
unset -v lib32depends lib32disabled lib32files lib32mode lib32symlinks
# hooks/pre-pkg/06-shlib-provides
unset -v noshlibprovides shlib_provides
# xbps-triggers: system-accounts
unset -v system_accounts system_groups
# xbps-triggers: font-dirs
unset -v font_dirs
# xbps-triggers: xml-catalog
unset -v xml_entries sgml_entries xml_catalogs sgml_catalogs
# xbps-triggers: pycompile
unset -v pycompile_version pycompile_dirs pycompile_module
# xbps-triggers: dkms
unset -v dkms_modules
# xbps-triggers: kernel-hooks
unset -v kernel_hooks_version
# xbps-triggers: mkdirs
unset -v make_dirs
# xbps-triggers: binfmts
unset -v binfmts
# xbps-triggers: register-shell
unset -v register_shell