Packaging request #1962
[polybar] Add package to pcr
polybar is a nice status bar for i3 window manager
I think it should be added to the repo
Licenses and Dependencies¶
Polybar is licensed under the MIT license.It includes the following submodules:
|xpp||custom (source)||yes ?|
The LICENSE of xpp is nearly the MIT license. The difference is, that there are two (many?) license holders mentioned:
Original work Copyright (c) 2018, Jochen Keil Modified work Copyright 2018, Michael Carlberg (jaagr) and contributors
I've just began learning about licenses. Does anybody know, whether this may be a problem? If knowbody knows, I can contact the FSF and investigate further.
Build Dependencie¶"The following dependencies are only needed during compilation, you can remove them, if you don't need them, after you built polybar."
|gcc >= 5.1||gcc||core|
|clang >= 3.4||clang||extra|
|cmake >= 3.1||cmake||extra|
"These are the hard dependencies, you cannot build or run polybar without them":
Optional Dependencies¶"These dependencies enable optional features in polybar, if they are installed during compilation:"
|Optional Dependency||Required for||Package||Repo|
|xcb-util-cursor||`cursor-click` <br />`cursor-scroll`||xbc-util-cursor||community|
Altough this dependencies are called optional, they are not threated as this in the PKGBUILD. The reason is:
"[Polybar] current build setup links the shared libraries for the optional dependencies at compile time which makes the whole executable not start, if the libraries it was linked against are missing."
Therefore, I have declared them as (obligatory) dependencies as suggested here.
Is attached. I was able to build the package for all 3 architectures.
- The example config runs quite well. To run completly correct, one would need to install additional fonts (from AUR), which are not in Parabola yet. We could replace the fonts in the example config. Furthermore, there needs some more configuration to be done.
- My personal config runs without any problems.
- There are som further tests provided. As they need networking connection during the build process, I have not included them in check(). I was able to succesfully run them with makepkg.
Maintenance load of this package¶
The PKGBUILD is quite simple and does not change to much (1-3 releases/year).
One thing which is an additonal load, is that polybar has to be rebuild when jsoncpp is upgraded (see here, this happens 1-4/year).
I am willing to further contribute to this packet with furder rebulding and patches.
Taking a look now...
With re looking at the xxp license I suspect that it won't interact badly with the GPL as I do not see any abridging of the four freedoms.
You didn't include yourself as a Contributor: How would you like to be listed there
I'll have to read up a bit about changing the op-depends into hard depends tho your reasoning seems sound.
I'll do a test build and see how it goes.