Making a PKGBUILD to install binaries
Hello everyone! I am trying to make a PKGBUILD to install binary files
here is my question:
what does this do? what is "install" for? What does "-D" do? And what is "-m755" ?
does this install -D -m755 thing just copy the binary files into the directory? What does 755 represent? Some sort of permissions or something? I want to copy .exe files for Mono to use, what number should I use, 755?
install -D -m755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -D -m644 "man/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
And what would it look like to install an init script with a PKGBUILD? Does anyone have any examples I can look at? I want to make a PKGBUILD that will cover Runit, SysV & SystemD, so far I think I could make 3 different parts & just "uncomment your init system to install desired init script", but is there perhaps a way to make a PKGBUILD detect the installer's init & auto-select the right file for them?