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

Added an example for an ecmp file #7

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions example.ecmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# basic information about the package
[info]
name = example
version = 1.0.0
type = src # If your are trying to make a package for a binary change this from "src" to "bin"
license = Example
url = example.com # Here you put the url to the archive or binary file

# package description , it can be on multiple lines and we support makdown
[description]
Example

# Here you type any dependencies this program needes on runtime
[dependencies]
exampledep

# Here you type any dependencies this program needes on build time
[makedeps]
examplebuilddep

# A Script to download and extract the archive
[download]
curl -L $URL | tar -xz

# this is basically a bash script to install the package
[install]
echo "EXAMPLE"

# this is a bash script that is run after the installation
[special]
echo "This is SPECIAL"

# Here you can manually type any place where upon build time the Makefile installs libs or something else in a specific place
[locations]
/usr/lib/example/

# Also it should be noted that there are variables that are set before executing any of the scripts and basically every parameter in the info section is passed as a variable to every script like: for name there is $NAME variable containg the name, $VERSION for the version, $URL for the url and so on.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
* _Also everything is being tried to work using ([CCCP](https://github.com/Soviet-Linux/CCCP) and [libspm](https://github.com/Soviet-Linux/libspm)) or it is known to work with ([CCCP](https://github.com/Soviet-Linux/CCCP) and [libspm](https://github.com/Soviet-Linux/libspm)) \
If you want to know more about the structure of our packages head to <a href="https://docs.sovietlinux.ml/en/repo"><strong>docs »</strong></a>_
* *You are also encouraged to report problems if you are using cccp and some packages dont work in the mean time you can try installing the package yourself using the [BLFS Handbook provided by Linux from scratch organisation](https://linuxfromscratch.org/blfs/view/stable/)*

# Also if you want an example of how an ecmp file looks like look at example.ecmp at the root of this repository
Loading