doc: add lots of sample files

This commit is contained in:
2025-08-06 22:15:32 +01:00
parent 58ce442993
commit 4190a5c54a
14 changed files with 396 additions and 0 deletions

46
doc/sample.recipe Normal file
View File

@@ -0,0 +1,46 @@
import ropkg
package_manifest = {
'Name': 'rosequartz',
'Version': '1.0',
'Maintainers': [ 'Max Wash <max@doorstuck.net>' ],
'Arch': ropkg.system.arch(),
'Platform': ropkg.system.platform_name(),
'Description': 'Cross platform C and C++ runtime',
'Depends': [ 'libc:1.0', 'libm:1.0'],
'License': '3-Clause BSD',
'Website': 'http://doorstuck.net',
'SourceWebsite': 'https://gitlab.com/doorstuck/rosequartz'
}
def get_sources():
ropkg.git.clone_repo('rosequartz', 'https://gitlab.com/doorstuck/rosequartz.git')
def configure():
ropkg.cmake.configure_project('rosequartz')
def build():
ropkg.build.build_project('rosequartz')
def package():
ropkg.pkg.build_package('rosequartz', package_manifest)
recipe = {
'name': 'rosequartz',
'steps': {
'get-src': get_sources,
'configure': configure,
'build': build,
'package': package,
}
}
ropkg.run_recipe(recipe)
# vim: ft=python