arch: ensure the build files are installed correctly.

This commit is contained in:
Alexandre Pujol 2022-02-22 22:09:55 +00:00
parent 027f9e883c
commit b0690c0e55
Failed to generate hash of commit

View file

@ -34,19 +34,19 @@ build() {
} }
package() { package() {
local _build='.build/apparmor.d' local _build='.build'
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname"
# Install all files from root/ # Install all files from $_build/root
mapfile -t root < <(find root -type f -printf "%P\n") mapfile -t root < <(find "$_build/root" -type f -printf "%P\n")
for file in "${root[@]}"; do for file in "${root[@]}"; do
install -Dm0644 "root/$file" "$pkgdir/$file" install -Dm0644 "$_build/root/$file" "$pkgdir/$file"
done done
# Install all files from $_build # Install all files from $_build/apparmor.d
mapfile -t build < <(find "$_build/" -type f -printf "%P\n") mapfile -t apparmor < <(find "$_build/apparmor.d" -type f -printf "%P\n")
for file in "${build[@]}"; do for file in "${apparmor[@]}"; do
install -Dm0644 "$_build/$file" "$pkgdir/etc/apparmor.d/$file" install -Dm0644 "$_build/apparmor.d/$file" "$pkgdir/etc/apparmor.d/$file"
done done
# Ensure some systemd services do not start before apparmor rules are loaded # Ensure some systemd services do not start before apparmor rules are loaded