build: ensure arch based build always works.

This commit is contained in:
Alexandre Pujol 2023-07-08 22:59:54 +01:00
parent 6d7996a2fd
commit c68bef3f16
Failed to generate hash of commit
2 changed files with 1 additions and 10 deletions

View file

@ -30,7 +30,7 @@ build() {
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make
make DISTRIBUTION=arch
}
package() {

View file

@ -43,18 +43,9 @@ cd apparmor.d-git
makepkg -si
```
!!! note
If your Archlinux based distribution is not recognized, force it with:
```sh
DISTRIBUTION=arch makepkg -si
```
## :material-ubuntu: Ubuntu & :material-debian: Debian
Build the package from sources:
```sh
sudo apt install apparmor-profiles build-essential config-package-dev debhelper golang-go rsync git