2021-06-21 13:16:46 +02:00
# My personalized Arch Linux distribution
2021-04-19 21:56:06 +02:00
2021-06-18 21:46:50 +02:00
## Submodules - Initialization and Updating
2021-06-16 16:12:02 +02:00
2021-07-01 12:42:16 +02:00
There are several [AUR ](https://aur.archlinux.org/ ) packages added as submodules inside [pkg ](pkg ).
2021-06-16 20:21:21 +02:00
See [build-pkg/pkglist-AUR.txt ](build-pkg/pkglist-AUR.txt ) for a full list.
2021-06-16 16:12:02 +02:00
2021-06-18 21:46:50 +02:00
They were added in the following manner:
2021-06-16 16:12:02 +02:00
```shell
2021-09-08 22:53:17 +02:00
AUR_PKG=plib
2021-07-01 12:42:16 +02:00
git submodule add "https://aur.archlinux.org/${AUR_PKG}.git" pkg/"${AUR_PKG}"
2021-09-08 22:32:03 +02:00
# echo " ${AUR_PKG}" >> build-pkg/pkglist-AUR.txt
2021-06-16 16:12:02 +02:00
```
2021-07-09 13:47:47 +02:00
And can be removed with:
```shell
AUR_PKG=vulkan-amdgpu-pro
git rm pkg/"${AUR_PKG}"
```
2021-06-18 21:46:50 +02:00
To initialize the submodules, run
2021-06-17 15:32:47 +02:00
```shell
git submodule init
```
2021-06-26 18:30:33 +02:00
To update all submodules and add those who received an update to
[build-pkg/pkglist.tmp ](build-pkg/pkglist.tmp ), run
2021-06-16 16:12:02 +02:00
```shell
2021-07-01 12:42:16 +02:00
./git-pull
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
2021-07-01 12:42:16 +02:00
sudo docker-compose -f build-pkg/docker-compose.yml 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
2021-07-01 12:42:16 +02:00
./build-pkg/build-all
2021-05-14 14:50:43 +02:00
```
2021-07-01 12:42:16 +02:00
## Build outdated AUR packages
```shell
./build-pkg/pull-and-build-outdated
```
2021-05-14 14:50:43 +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 )