This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:program:oppm [2015/02/04 16:57] vexatos [Registering packages globally] |
tutorial:program:oppm [2015/03/24 23:00] vexatos |
||
---|---|---|---|
Line 97: | Line 97: | ||
```lua | ```lua | ||
{--This is an example for a programs.cfg file. Please do not add any comments inside actual programs.lua files | {--This is an example for a programs.cfg file. Please do not add any comments inside actual programs.lua files | ||
- | ["example-package"] = { | + | ["example-package"] = { |
- | files = { | + | files = { |
- | ["master/somefolder/bar.lua"] = "/",--"/" means the file will be placed inside the folder the user specified, defaults to /usr | + | ["master/somefolder/bar.lua"] = "/",--"/" means the file will be placed inside the folder the user specified, defaults to /usr |
- | ["master/somefolder/barinfo.txt"] = "//etc", -- double slash for using an absolute path | + | ["master/somefolder/barinfo.txt"] = "//etc", -- double slash for using an absolute path |
- | ["master/somefolder/barlib.lua"] = "/subfolder",--Places the file in a subfolder in the user-specified folder | + | [":master/otherfolder"] = "/share/something", -- A colon marks a folder, will include everything in that folder |
- | ["master/somefolder/libfolder/"] = "/" | + | [":master/otherfolder"] = "//etc/something", -- This also works with absolute paths |
- | }, | + | ["master/somefolder/barlib.lua"] = "/subfolder",--Places the file in a subfolder in the user-specified folder |
- | dependencies = { | + | ["master/somefolder/libfolder/"] = "/" |
- | ["GML"] = "/lib"--This package is installed into the specified subfolder | + | |
- | }, | + | |
- | name = "Package name",--This is for "oppm info" | + | |
- | description = "This is an example description",--This is for "oppm info" | + | |
- | authors = "Someone, someone else",--This is for "oppm info" | + | |
- | note = "Additional installation instructions, general instructions and additional information/notes go here, this is an optional line.", | + | |
- | hidden = true, -- Add this optional line to make your package not visible in "oppm list", useful for custom dependency libraries | + | |
- | repo="tree/master/somefolder" --Used by the website. This is where the package will link to on the website | + | |
}, | }, | ||
- | ["yet-another-package"] = { | + | dependencies = { |
- | ... | + | ["GML"] = "/lib"--This package is installed into the specified subfolder |
- | } | + | }, |
+ | name = "Package name",--This is for "oppm info" | ||
+ | description = "This is an example description",--This is for "oppm info" | ||
+ | authors = "Someone, someone else",--This is for "oppm info" | ||
+ | note = "Additional installation instructions, general instructions and additional information/notes go here, this is an optional line.", | ||
+ | hidden = true, -- Add this optional line to make your package not visible in "oppm list", useful for custom dependency libraries | ||
+ | repo="tree/master/somefolder" --Used by the website. This is where the package will link to on the website | ||
+ | }, | ||
+ | ["yet-another-package"] = { | ||
+ | ... | ||
+ | } | ||
} | } | ||
``` | ``` |