Yeeah, I managed to do it: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#kodi-devel... I think it makes sense to notice somewhere in wiki that db file should be named after name of repository (which absolutely makes sense but is not obvious at all when you have some experience with another distributions of linux). Thanks everybody for help and for getting this real. Also if somebody in the future somebody will want to set up repository with github and travis — he can look at my repository at https://github.com/asm0dey/kodi-devel-prebuilt as source ofinspiration. -- Regrads, Pasha On Fri, 2019-08-16 at 13:29 -0400, Eli Schwartz via aur-general wrote:
On 8/16/19 11:42 AM, pavel.finkelshtein@gmail.com wrote:
Hi everyone,
So I have the repo built (BTW, Travis CI is able to upload files to pages by itself) here: https://github.com/asm0dey/arch-kodi-devel-builder/tree/gh-pages/x86_64
It's built with `repo-add` command and looks correct to me. Next question to everybody: how will pacman detect database without directory listing?
$ curl -s https://asm0dey.github.io/arch-kodi-devel-builder/x86_64/repo.db | bsdtar -tf - kodi-bin-devel-18.4rc1pre20-1/ kodi-bin-devel-18.4rc1pre20-1/desc kodi-dev-devel-18.4rc1pre20-1/ kodi-dev-devel-18.4rc1pre20-1/desc kodi-devel-18.4rc1pre20-1/ kodi-devel-18.4rc1pre20-1/desc kodi-eventclients-devel-18.4rc1pre20-1/ kodi-eventclients-devel-18.4rc1pre20-1/desc kodi-gbm-devel-18.4rc1pre20-1/ kodi-gbm-devel-18.4rc1pre20-1/desc kodi-tools-texturepacker-devel-18.4rc1pre20-1/ kodi-tools-texturepacker-devel-18.4rc1pre20-1/desc kodi-wayland-devel-18.4rc1pre20-1/ kodi-wayland-devel-18.4rc1pre20-1/desc
So the pacman.conf setting would be:
[repo] Server = https://asm0dey.github.io/arch-kodi-devel-builder/$arch
I advise using a more descriptive name for the repository instead of "repo.db".
Aside for that, pacman only cares about being told the name of the .db, and then it downloads that directly (by concatenating the Server directive, a "/", the repository name, and ".db"), getting all other information by using a database parser, not via regular expressions on an HTML file.
As I said on Wednesday:
If you want an HTML index, you can generate your own or rely on webserver software to do so automatically, but it would be entirely for the interactive viewing pleasure of the user.