cleanup and update README
This commit is contained in:
parent
01e7d35da7
commit
9ac300e528
2
Makefile
2
Makefile
@ -4,4 +4,4 @@ build:
|
|||||||
podman build -t gitea.balki.me/balki/aur_builder:exp -t gitea.balki.me/balki/aur_builder:`date -I` .
|
podman build -t gitea.balki.me/balki/aur_builder:exp -t gitea.balki.me/balki/aur_builder:`date -I` .
|
||||||
|
|
||||||
pull:
|
pull:
|
||||||
podman pull docker.io/archlinux:base-devel
|
podman pull docker.io/archlinux:base-devel
|
||||||
|
16
README.md
16
README.md
@ -1,13 +1,25 @@
|
|||||||
|
Build Archlinux packages in rootless podman container
|
||||||
|
|
||||||
|
### Why
|
||||||
|
|
||||||
Command to build
|
1. `sudo` is run inside container (required for makepkg). Does not affect host system
|
||||||
|
2. Does not install unnecessary make dependencies in host system
|
||||||
|
3. Build runs in clean environment.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
1. Remove/Replace mirror url. I run [pacoloco](https://github.com/anatol/pacoloco) locally at archmirror.i.balki.me
|
||||||
|
2. Change PACKAGER setting to your name/email
|
||||||
|
3. Add AUR dependencies in a folder `deps/` (if any)
|
||||||
|
|
||||||
|
### Command to build
|
||||||
|
|
||||||
```
|
```
|
||||||
cd ~/projects/mine/aur_builder/
|
cd ~/projects/mine/aur_builder/
|
||||||
podman build -t gitea.balki.me/balki/aur_builder:exp .
|
podman build -t gitea.balki.me/balki/aur_builder:exp .
|
||||||
```
|
```
|
||||||
|
|
||||||
Command to run
|
### Command to run
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /home/balki/gotosocial_aur/
|
cd /home/balki/gotosocial_aur/
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
PACKAGER="Balakrishnan Balasubramanian <arch-pkger@balki.me>"
|
PACKAGER="Balakrishnan Balasubramanian <arch-pkger@balki.me>"
|
||||||
|
|
||||||
|
# Do not build debug packages
|
||||||
|
|
||||||
for index in "${!OPTIONS[@]}"; do
|
for index in "${!OPTIONS[@]}"; do
|
||||||
if [[ "${OPTIONS[$index]}" = *debug ]]; then
|
if [[ "${OPTIONS[$index]}" = *debug ]]; then
|
||||||
OPTIONS["$index"]="!debug"
|
OPTIONS["$index"]="!debug"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Enables all extra features supported by host CPU
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -march=native -mtune=native"
|
CFLAGS="$CFLAGS -march=native -mtune=native"
|
||||||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user