# This is the dérive ports tree.
0. overview
- this repo contains a number of build recipes and a build recipe system, leveraging pure posix sh. it is used with the 'dtr' and 'spc' helpers, which install these ports. everything is built using static linking. we try and pick out only actually decent software to be in this repo, with some exceptions.
1. scripts
_derive "port scripts" (ndmake.sh) are (kinda) simple. you need to define some metadata at the top;_
- **name** - package name
- **version** - package version
- **release** - package release
- **sources** - upstream git/tarball link and any patches/other files
the port must also have a deps file, which lists dependnecies and what type of dependency they are:, - . - build time deps
- / - link time deps
- > - runtime deps
as well as an info file, listing the name, version, description, license, and upstream link
2. running scripts
_there are two ways to run a **dmake.sh**_
1. doing it with dtr [reccomended]
this is the most simplest way, _(the latter is too)_ you just run `dtr mi <package>`
such script **[m]akes** and **[i]nstalls** a port. this also tracks the package's installed files, automatically resolves dependencies, and allows for easy package removal later.
2. doing it the hard way