**If you don't have permissions to do something on this page, please
open issue against https://github.com/mesonbuild/wrapweb/issues to
let us know that you want to start new project.**
## Overview
## How it works
The wrap provider service is a simple web service that makes it easy
Each wrap repository has a master branch with only one initial commit and *no* wrap files.
to download build definitions for projects. It works in much the same
And that is the only commit ever made on that branch.
way as Debian: we take the unaltered upstream source package and add a
new build system to it as a patch. These build systems are stored as
Git repositories on GitHub. They only contain build definition
files. You may also think of them as an overlay to upstream source.
## Creator script
For every release of a project a new branch is created. The new branch is named after the
the upstream release number (e.g. `1.0.0`). This branch holds a wrap file for
this particular release.
There are two types of wraps on WrapDB - regular wraps and wraps with Meson build
definition patches. A wrap file in a repository on WrapDB must have a name `upstream.wrap`.
Wraps with Meson build definition patches work in much the same way as Debian: we take the unaltered upstream source package and add a new build system to it as a patch. These build systems are stored as Git repositories on GitHub. They only contain build definition files. You may also think of them as an overlay to upstream source.
The WrapDB repository has a [helper
Whenever a new commit is pushed into GitHub's project branch, a new wrap is generated
git commit -a -m 'Add wrap files for libfoo-1.0.0'
git push origin 1.0.0
```
Now you should create a pull request on GitHub. Remember to create it against the
correct branch rather than master (`1.0.0` branch in this example). GitHub should do
this automatically.
## What is done by WrapDB maintainers
### Adding new project to the Wrap provider service
Each project gets its own repo. It is initialized like this:
Each project gets its own repo. It is initialized like this:
```
git init
git init
git add readme.txt
git add readme.txt
git add LICENSE.build
git add LICENSE.build
git commit -a -m 'Create project foobar'
git commit -a -m 'Create project foobar'
git remote add origin <repourl>
git remote add origin <repourl>
git push -u origin master
git push -u origin master
```
Note that this is the *only* commit that will ever be made to master branch. All other commits are done to branches.
Note that this is the *only* commit that will ever be made to master branch. All other commits are done to branches.
Repo names must fully match this regexp: `[a-z0-9._]+`.
Repo names must fully match this regexp: `[a-z0-9._]+`.
## Adding a new branch to an existing project
### Adding a new branch to an existing project
Create a new branch whose name matches the upstream release number.
Create a new branch whose name matches the upstream release number.
```
git checkout master
git checkout master
git checkout -b 1.0.0
git checkout -b 1.0.0
git push origin 1.0.0
git push origin 1.0.0
(or from GitHub web page, remember to branch from master)
(or from GitHub web page, remember to branch from master)
```
Branch names must fully match this regexp: `[a-z0-9._]+`.
Branch names must fully match this regexp: `[a-z0-9._]+`.
## Adding a new release to an existing branch
Here is where the magic happens. Whenever a new commit is pushed into GitHub's project branch, a new wrap is generated with an incremented version number. All the old releases remain unaltered. New commits are always done via GitHub merge requests and must be reviewed by someone other than the submitter.
Note that your Git repo must *not* contain the subdirectory of the source release. That gets added automatically by the service. You also must *not* commit any source code from the original tarball into the wrap repository.
First you need to fork the repository to your own page. Then you can create the first Wrap commit that usually looks something like this.