
makepkg will now error if disallowed variables are set inside of the package function. Disallowed variables are variables that do exist, like 'makedepends' and 'pkgver' but can not be set inside of a package function. Signed-off-by: morganamilo <morganamilo@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
39 lines
855 B
Meson
39 lines
855 B
Meson
libmakepkg_module = 'lint_pkgbuild'
|
|
|
|
sources = [
|
|
'arch.sh.in',
|
|
'backup.sh.in',
|
|
'changelog.sh.in',
|
|
'checkdepends.sh.in',
|
|
'conflicts.sh.in',
|
|
'depends.sh.in',
|
|
'epoch.sh.in',
|
|
'fullpkgver.sh.in',
|
|
'install.sh.in',
|
|
'makedepends.sh.in',
|
|
'optdepends.sh.in',
|
|
'options.sh.in',
|
|
'package_function.sh.in',
|
|
'package_function_variable.sh.in',
|
|
'pkgbase.sh.in',
|
|
'pkglist.sh.in',
|
|
'pkgname.sh.in',
|
|
'pkgrel.sh.in',
|
|
'pkgver.sh.in',
|
|
'provides.sh.in',
|
|
'source.sh.in',
|
|
'util.sh.in',
|
|
'variable.sh.in',
|
|
]
|
|
|
|
foreach src : sources
|
|
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
|
|
|
|
custom_target(
|
|
libmakepkg_module + '_' + src.underscorify(),
|
|
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
|
|
input : src,
|
|
output : '@BASENAME@',
|
|
install : true,
|
|
install_dir : output_dir)
|
|
endforeach
|