hello everyone,
While browsing through the xwiki-snap package distribution list, I noticed that the majority of of the users using xwiki-snap were using Debian-based Linux distributions. (ubuntu,debian,linux mint)
This may be due to multiple factors, like out-of-the-box support for snap packages, etc.
Thus, to make XWiki more accessible to developers using Arch Linux-based distributions, I would like to package the XWiki for the Arch User Repository (AUR).
The Arch User Repository (AUR) is a community-driven repository for Arch users. It contains a package descriptions (PKGBUILDs) that allow you to compile a package from source with makepkg, and then install it via pacman.
Most arch linux users prefer to use the AUR over the snapcraft because:
- faster load time: aur packages load faster compared to their snap counterpart.
- lightweight: aur packages are lightweight since they do not come with all of their dependencies installed.
- More Control: With AUR, you have more control over the software you install. You can customize the software packages to meet your specific needs, and you have the ability to modify the software before installation.
- No Snapsd: Snap relies on a daemon called snapsd to run in the background and manage snap packages. AUR does not require any background daemon or service to operate.
To build a clean, working package of XWiki and publish it on the AUR, only a PKGBUILD script would be required. (similar to snapcraft.yaml in Snaps).
The following script can be made using the xwiki .deb packages, xwiki .zip package, and the .war package.
Using the .war package doesnāt seem feasible as the entire source code would be needed to be compiled and would be much harder to maintain.
Using the .deb packages as a core component seems like the ideal approach. Programs like Debtap can be used to convert DEB packages into
arch linux packages Although far from perfect, I used Debtap to convert quadrapassel_3.32 a .deb package into a arch linux package.
There were a lot of dependency issues that, once resolved (by editing the PKGBUILD manually), would produce ideal results.
A PKGBUILD file can be created from scratch for the XWiki .zip package. I have recently tried packaging TIRAMISU(a notification daemon) (Github-link). It helped me get a better understanding of how to package for the AUR. Thus making a PKGBUILD for XWiki .zip file wouldnāt be much of a hassle. But using the .deb package would be ideal.
Integrating them into the release process would be a high priority, along with automating as much as possible.
I would love to get your valuable feedback and input on the following proposal