LFS package ports collection. (fork of ahmadraniri1994's lports-archived)
root
- audio
- compressors
- daemon
- db
- devel
- doc
- editor
- firmware
- font
- icon
- kernel
- lang
- libs
- lisp
- lxde
- man
- media
- misc
- net
- perl
- python
- shell
- sys
- tool
- wayland
- x11
- xapps
- xfce4
- LICENSE
- Makefile.empty
- README.md
- WRITE.md
- lfs.port.mk
- mk
- strip.mk
- test.txt
lfs.ports
What's this ?
Ports package build collection for LFS / linux distro in general. It's a collection of recipe to build package. Using Makefile and bsd.port.mk-like (I call it as lfs.port.mk). If you're familiar with ports from openbsd & freebsd, you would easily recognize it. There are 8 build types, make, cmake, meson, bmake, muon, cargo, zig and custom.
How to use it ?
You could easily use it, but before that, you should have these requirements :
- wget, to download source code. You could change it with your tool downloader.
- build tools, like compiler (I use gcc mainly), make, meson, cmake, bmake, muon and zig.
- tar, to create tar.gz package archive.
- graft, to do grafting.
- text editor.
- patch, to do patching (if needed)
After you have those requirements, let's build our package !
- Copy
lfs.port.mk&strip.mkto/usr/share/mkdirectory. - Pick a template package, for example
iceauth. Run these commands :
Explanation :$ make download $ make extract $ make prepare $ make build $ make package- make download, download source code.
- make extract, extract source code.
- make prepare, prepare build, like patching (if needed), edit the source code, etc.
- make build, build package.
- make package, create tar.gz package.
Once the package's created, we can install it using mk package manager.
$ sudo /path/to/mk a P=1 PKG=iceauth-1.0.10-0@xapps.tar.gz
note : For more info about mk, you could read its documentation here.
Main repository & mirrors
Main repository : Github.
Mirrors :
- GitLab.
- Github.
- Github alternative.
- codeberg.org.
- sourcehut.
- bitbucket.
- git.gnu.org.ua, cloneable only, can't be previewed.