Skip to content

Commit

Permalink
Merge pull request #7 from Soviet-Linux/Example-ecmp
Browse files Browse the repository at this point in the history
Added an example for an ecmp file
  • Loading branch information
AleksArt000 committed Nov 17, 2023
2 parents 4a53d07 + d7902fa commit 5c7cb69
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
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

0 comments on commit 5c7cb69

Please sign in to comment.