Compare commits
No commits in common. "876aeced9fa34f607b07cb1d0fd8db78de8b7f5e" and "9cd6a421f0f41228fd065c0c0274c2ffe64cfb64" have entirely different histories.
876aeced9f
...
9cd6a421f0
3 changed files with 7 additions and 47 deletions
36
README.md
36
README.md
|
@ -1,7 +1,5 @@
|
|||
# test-package
|
||||
|
||||
## Usage
|
||||
|
||||
Simple package to test both eternity and eon
|
||||
|
||||
Build with
|
||||
|
@ -15,37 +13,3 @@ Install with
|
|||
```
|
||||
eon install <output file>.epk
|
||||
```
|
||||
|
||||
## The eternity.json file
|
||||
|
||||
The `eternity.json` file contains various options to configure the build and metadata of the package. Below is a breakdown of the available options:
|
||||
|
||||
### metadata
|
||||
|
||||
- **author**: The author of the package. Example: `"Example"`
|
||||
- **name**: The name of the package. Example: `"test-package"`
|
||||
- **desc**: A short description of the package. Example: `"A wonderful test package"`
|
||||
- **longDesc**: A detailed description of the package. Example: `"A very wonderful package\nWith a very long\nDescription!"`
|
||||
- **version**: The version of the package. Example: `"1.0.2"`
|
||||
- **license**: The license under which the package is distributed. Example: `"MIT"`
|
||||
- **arch**: The architecture for which the package is built. Example: `"x86_64"`
|
||||
- **deps**: A list of dependencies required by the package. Example: `[]`
|
||||
- **specialFiles**: Special files that have specific handling rules.
|
||||
- **noDelete**: Files that should not be deleted. Example: `["/etc/config.conf"]`
|
||||
- **noReplace**: Files that should not be replaced. Example: `["/var/hi/cache.thing"]`
|
||||
|
||||
### build
|
||||
|
||||
- **type**: The type of build environment. Example: `"host"`
|
||||
- **deps**: A list of build dependencies. Example: `[]`
|
||||
- **steps**: The steps to build the package.
|
||||
- Example:
|
||||
```json
|
||||
[
|
||||
"g++ -c src/main.cpp -o main.o",
|
||||
"mkdir -p build/usr/bin",
|
||||
"g++ main.o -o build/usr/bin/test-package"
|
||||
]
|
||||
```
|
||||
- **root**: The root directory for the build output. Example: `"build"`
|
||||
- **files**: The directory containing the source files. Example: `"src"`
|
|
@ -6,7 +6,7 @@
|
|||
"longDesc": "A very wonderful package\nWith a very long\nDescription!",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"arch": "x86_64",
|
||||
"arch": "noarch",
|
||||
"deps": [],
|
||||
"specialFiles": {
|
||||
"noDelete": ["/etc/config.conf"],
|
||||
|
@ -17,11 +17,13 @@
|
|||
"type": "host",
|
||||
"deps": [],
|
||||
"steps": [
|
||||
"g++ -c src/main.cpp -o main.o",
|
||||
"mkdir -p build/usr/bin",
|
||||
"g++ main.o -o build/usr/bin/test-package"
|
||||
"mkdir -p build/t/etc/",
|
||||
"mkdir -p build/t/var/hi/",
|
||||
"touch build/t/etc/config.conf",
|
||||
"touch build/t/var/hi/cache.thing"
|
||||
],
|
||||
"root": "build",
|
||||
"files": "src"
|
||||
"hooks": "install-scripts",
|
||||
"files": "resources"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue