Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Git Sources and Build Commands #16

Open
odysseywestra opened this issue Jun 7, 2017 · 0 comments
Open

Support for Git Sources and Build Commands #16

odysseywestra opened this issue Jun 7, 2017 · 0 comments

Comments

@odysseywestra
Copy link
Contributor

odysseywestra commented Jun 7, 2017

Styrene should have support for git sources and build commands. Having this would allow a packager or developer to be able directly test their code without having to use an external tool like makepkg-mingw and a PKGBUILD file to make the package. Plus it keeps the code duplication down as well. Here is an example for MyPaint:

[mypaint-git]
url = https://github.com/mypaint/mypaint
path = ../  # <-- For example if the cfg file was stored in /styrene.
build-packages =
    {pkg-prefix}setuptools
    {pkg-prefix}build-package-two
    {pkg-prefix}build-package-two
command =
    python setup.py build
    python setup.py install --root="{install-root}" --prefix="{install-prefix}"

[libmypaint-git]
url = ...
path = ...

This would also mean we would need to add new substitutions like install-root and install-prefix so styrene would know where to install the files.

In the bundle field, we should create a dynamic substitution that reflect the source name. That way styrene, can also glean the default metadata off the first like you can do with standard packages.

[bundle]
packages = 
    {mypaint-git}
    {libmypaint-git}
    {pkg-prefix}gtk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant