Add packaging scripts for Meson
It probably doesn't belong here but I don't feel like creating another repository for this either yet.
This commit is contained in:
11
meson/packaging/meson.build
Normal file
11
meson/packaging/meson.build
Normal file
@@ -0,0 +1,11 @@
|
||||
# You need to prepare a configuration object with the required metadata
|
||||
packaging.set ('arch', target_machine.cpu_family ())
|
||||
packaging.set ('system', target_machine.system ())
|
||||
configure_file (input: 'meta.in', output: 'meta', configuration: packaging)
|
||||
|
||||
# RPM is awful and I've given up on both manual generation (we'd have to either
|
||||
# include rpmrc data or generate fake noarch packages) and rpmbuild (just no)
|
||||
run_target ('deb',
|
||||
command: [join_paths (meson.current_source_dir (), 'make-deb.sh')])
|
||||
run_target ('pacman',
|
||||
command: [join_paths (meson.current_source_dir (), 'make-pacman.sh')])
|
||||
Reference in New Issue
Block a user