Add some useful symlinks

This commit is contained in:
Jan Alexander Steffens 2018-08-20 21:52:22 +00:00
parent 2652a0b904
commit 469e40c71d

View File

@ -191,6 +191,10 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
msg2 "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase-$pkgver"
msg2 "Fixing permissions..."
chmod -Rc u=rwX,go=rX "$pkgdir"
}
@ -206,6 +210,10 @@ _package-docs() {
mkdir -p "$builddir"
cp -t "$builddir" -a Documentation
msg2 "Adding symlink..."
mkdir -p "$pkgdir/usr/share/doc"
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
msg2 "Fixing permissions..."
chmod -Rc u=rwX,go=rX "$pkgdir"
}