doc: add lots of sample files
This commit is contained in:
46
doc/sample.recipe
Normal file
46
doc/sample.recipe
Normal 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
|
||||
Reference in New Issue
Block a user