Coder Social home page Coder Social logo

brewkit's Introduction

pkgx

BrewKit

Usage

$ bk build zlib.net
$ bk test zlib.net

Tip

If you’re inside a pantry clone then (after running dev) brewkit will build/test whatever has been edited.

Build Process Details

Note

$BREWROOT is either your pantry clone or ${XDG_DATA_HOME:-$HOME/.local/share}/brewkit.

Note

$PKGSLUG is the pkg project name with slashes replaced with unicode slashes and the version appended in -1.2.3 form.

  1. srcs are placed at $BREWROOT/srcs/$PKGSLUG
    • if the source type is a tarball, it is stored as $BREWROOT/srcs/$PKGSLUG.ext
  2. if the src type is not source control a git repository is initialized for the sources and all files are added to the git stage.
    • this is so you can make modifications and get a diff with git diff that you can then save for use in your build script
  3. the sources are cloned to $BREWROOT/builds/$PKGSLUG via rsync
  4. the build script is generated and placed at $BREWROOT/builds/$PKGSLUG.sh
    • the build script uses pkgx machinery to work, check it out
  5. a pkgx.yaml is generated to $BREWROOT/builds/$PKGSLUG
    • this way if you step into that directory and dev you get the full build environment for your pkg
  6. the build script is run
    • the prefix your build script is fed is $BREWROOT/installs/$PKGSLUG
  7. $BREWROOT/builds/$PKGSLUG is moved to ${PKGX_DIR:-$HOME/.pkgx}
    • without this step you would not be able to use the package from within your pantry clone
  8. Some key tools are always provided by brewkit (via shims that install on demand). These are:
    • cc, and the associated build toolchain (specifically latest LLVM)
      • if you want a specific LLVM or GCC then specify the dep and that will be used instead
    • make
    • patch
    • GNU install
    • pkg-config
    • GNU sed

Apologies

This repo is optimized for the GitHub Actions calling site and not for readability. I hate this but it’s the right choice for our users.

brewkit's People

Contributors

mxcl avatar jhheider avatar abevier avatar rustdevbtw avatar diegoholiveira avatar felipecrs avatar uesyn avatar branchvincent avatar magnusviri avatar jrgoodle avatar mfts avatar tsirysndr avatar waldyrious avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.