mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-24 14:06:47 +01:00
build: ensure arch based build always works.
This commit is contained in:
parent
6d7996a2fd
commit
c68bef3f16
2 changed files with 1 additions and 10 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -30,7 +30,7 @@ build() {
|
||||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
export CGO_LDFLAGS="${LDFLAGS}"
|
export CGO_LDFLAGS="${LDFLAGS}"
|
||||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||||
make
|
make DISTRIBUTION=arch
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
@ -43,18 +43,9 @@ cd apparmor.d-git
|
||||||
makepkg -si
|
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
|
## :material-ubuntu: Ubuntu & :material-debian: Debian
|
||||||
|
|
||||||
|
|
||||||
Build the package from sources:
|
Build the package from sources:
|
||||||
```sh
|
```sh
|
||||||
sudo apt install apparmor-profiles build-essential config-package-dev debhelper golang-go rsync git
|
sudo apt install apparmor-profiles build-essential config-package-dev debhelper golang-go rsync git
|
||||||
|
|
Loading…
Reference in a new issue