ports: Allow build scripts install to custom path

This will maybe allow packaging ports :)
This commit is contained in:
2026-05-25 15:52:22 +03:00
parent c79e412215
commit bb170ba613
50 changed files with 92 additions and 82 deletions

View File

@@ -19,9 +19,10 @@ post_install() {
fi
eawpats_dir="/usr/share/eawpats"
mkdir -p "$BANAN_SYSROOT/$eawpats_dir"
unzip -qod "$BANAN_SYSROOT/$eawpats_dir" ../eawpats.zip
mkdir -p "$DESTDIR/$eawpats_dir"
unzip -qod "$DESTDIR/$eawpats_dir" ../eawpats.zip
cp "$BANAN_SYSROOT/$eawpats_dir/timidity.cfg" "$BANAN_SYSROOT/etc/"
sed -i "s|^dir .*$|dir $eawpats_dir|g" "$BANAN_SYSROOT/etc/timidity.cfg"
mkdir -p "$DESTDIR/etc"
cp "$DESTDIR/$eawpats_dir/timidity.cfg" "$DESTDIR/etc/"
sed -i "s|^dir .*$|dir $eawpats_dir|g" "$DESTDIR/etc/timidity.cfg"
}