2021-06-21 13:16:46 +02:00
# My personalized Arch Linux distribution
2021-04-19 21:56:06 +02:00
2021-09-09 13:11:54 +02:00
## Cloning this repository
2021-07-09 13:47:47 +02:00
```shell
2021-09-09 13:11:54 +02:00
git clone --recurse-submodules https://codeberg.org/privacy1st/arch & & cd arch
2021-06-17 15:32:47 +02:00
```
2021-09-09 13:11:54 +02:00
Or equivalently:
2021-06-16 16:12:02 +02:00
```shell
2021-09-09 13:11:54 +02:00
git clone https://codeberg.org/privacy1st/arch
cd arch
git submodule update --init --recursive
2021-06-16 16:12:02 +02:00
```
2021-05-14 14:50:43 +02:00
## Build packages from source
Fork this repository.
Then and adjust the following files:
* [pkg/de-p1st-repo/arch-repo.cfg ](pkg/de-p1st-repo/arch-repo.cfg )
2021-06-16 16:12:02 +02:00
* For your build-machine, adjust section `LOCAL MACHINE CONFIGURATION` : Add absolute path of folder [build-pkg/out ](build-pkg/out ) to array `LOCAL_PKG_DIRS`
2021-05-14 14:50:43 +02:00
as the build packages will be stored there.
* For your mirror-server, adjust section `REMOTE MIRROR SERVER CONFIGURATION` accordingly.
* [pkg/de-p1st-pacman/pacman.d/de-p1st ](pkg/de-p1st-pacman/pacman.d/de-p1st )
* Add the address of your mirror-server.
2021-06-18 21:46:50 +02:00
Build [de-p1st-repo ](pkg/de-p1st-repo ):
2021-05-14 14:50:43 +02:00
```shell
2022-03-08 21:49:07 +01:00
cd build-pkg & & sudo docker-compose run --rm makepkg de-p1st-repo
2021-05-14 14:50:43 +02:00
```
2021-06-18 21:46:50 +02:00
Install it on your build-machine and your mirror-server:
2021-05-14 14:50:43 +02:00
```shell
2021-06-18 21:46:50 +02:00
# On your local machine
2021-05-14 14:50:43 +02:00
sudo pacman -U out/de-p1st-repo*.pkg.tar.*
2021-06-18 21:46:50 +02:00
# Copy the package to your mirror-server and install it there as well!
2021-05-14 14:50:43 +02:00
```
Then you can start building all packages and adding them to your mirror-server:
```shell
2022-03-08 21:49:07 +01:00
cd build-pkg & & ./build-all
2021-05-14 14:50:43 +02:00
```
2021-09-09 13:11:54 +02:00
## Adding/removing AUR packages
There are several [AUR ](https://aur.archlinux.org/ ) packages added as submodules inside [pkg ](pkg ).
See [build-pkg/pkglist-AUR.txt ](build-pkg/pkglist-AUR.txt ) for a full list.
They were added in the following manner:
```shell
2021-12-14 18:48:34 +01:00
PKG=xml2
git submodule add "https://aur.archlinux.org/${PKG}.git" pkg/"${PKG}"
# echo "Add ${PKG} to 'build-pkg/pkglist-AUR.txt'. Each line represents one build stage."
2021-09-09 13:11:54 +02:00
```
And can be removed with:
```shell
2021-12-14 18:48:34 +01:00
PKG=xml2
git rm -f pkg/"${PKG}"
# echo "Above command should remove ${PKG} from '.gitmodules'."
2021-09-09 13:11:54 +02:00
```
2022-01-04 20:29:37 +01:00
If a package has been pushed to a remote repository, read [pkg/de-p1st-repo/README.md ](pkg/de-p1st-repo/README.md )
for details on how to remove it from there.
2021-09-09 13:11:54 +02:00
## Update submodules of AUR packages
To update all submodules and add those who received an update to
[build-pkg/pkglist.tmp ](build-pkg/pkglist.tmp ), run
```shell
./git-pull
```
2021-09-09 13:45:28 +02:00
2021-07-01 12:42:16 +02:00
## Build outdated AUR packages
2021-09-09 13:11:54 +02:00
The following command includes `./git-pull` .
2021-07-01 12:42:16 +02:00
```shell
2022-03-08 21:49:07 +01:00
cd build-pkg & & ./pull-and-build-outdated
2021-07-01 12:42:16 +02:00
```
2021-05-14 14:50:43 +02:00
2021-09-09 13:11:54 +02:00
2021-06-18 22:00:09 +02:00
## Install Arch Linux
2021-04-21 21:49:21 +02:00
2021-06-18 21:46:50 +02:00
See [pkg/de-p1st-installer/README.md ](pkg/de-p1st-installer/README.md )
2021-05-13 19:23:32 +02:00
2021-06-18 21:46:50 +02:00
## Notes and TODOs
2021-05-13 17:44:02 +02:00
2021-07-01 12:42:16 +02:00
See [notes.md ](notes.md )