sudo eopkg install -c system.devel
sudo eopkg install git solbuild
sudo eopkg install solbuild-config-unstable
mkdir ~/repository
cd ~/repository
sudo solbuild init
git clone https://git.solus-project.com/common
ln -sv common/Makefile.common .
ln -sv common/Makefile.toplevel Makefile
ln -sv common/Makefile.iso .
Edit your .bashrc
or .zshrc
alias fetchYml="$HOME/repository/common/Scripts/yauto.py"
git config --global user.name "Full Name"
git config --global user.email [email protected]
-
mkdir ~/.solus
-
nano ~/.solus/packager
[Packager] Name=Full Name [email protected]
sudo solbuild update
mkdir some-application
cd some-application
git init
Create package.yml
- Go to releases page and copy link to release tarball
fetchYml https://git.somesite.com/some-application-1.0.tar.gz
-
Check name, version and license. (Any changes to packages need the release number incremented)
-
Fill in
component
(get list of components to choose fromeopkg lc
) -
Fill in
summary
anddescription
(may be the same) -
Fill in
builddeps
(you don't have to define anything that is already insystem.devel
)-
eopkg search some-application-dependency-devel
-
eopkg info some-application-dependency-devel
-
Select an item from the
Provides
section and setbuilddeps
to the valuebuilddeps: - chossen-packageconfig(some-dependancy-1.0) - chossen-packageconfig(some-other-dependancy-1.0)
Setup macros (if necessary)
- Choose
setup
- Choose
build
- Choose
install
- Choose
mkdir files
touch files/example
install -Dm00644 $pkgfiles/example $installdir/usr/share/doc/some-application/examplefile
-
echo "include ../Makefile.common" > Makefile
make
ls eopkg some-application.eopkg
make clean
git status
git add *
git commit
- Set commit message (if it's the initial commit, set the commit message to
Initial commit of some-application
)
- Set commit message (if it's the initial commit, set the commit message to
git format-patch -n1
- create task on Solus Dev tracker
- title
some-application
(do not assign anyone the task) - fill in description
Initial inclusion of some-application
- upload
0001-Initial-commit-of-some-appliction.patch
- upload
- set Tags to
Patch Submission
- click create
- title
Hi, the link for the macros seems to be invalid (and that is the step where my buildprocess is currently aborting) is there an alternative explanation how to set up those?
also I am pretty fresh to building a package in solus so sorry if I am missing something obvious
ok maybe this was the section you were referring to? https://getsol.us/articles/packaging/package.yml/en/ (just the domain changed)