You are not logged in.

#1 2023-01-19 09:25:36

From: South Africa
Registered: 2017-07-26
Posts: 51

First font package (spleen) - Please review

Hi all,

First time packaging a font, and I am not sure if I am doing it correctly. Thanks to Andreas I already improved the PKGBUILD after I had adopted the package, and now I would like to just make sure all is correct.

Sources I already visited:

Thank you for your feedback.

The PKGBUILD is as follows:

(...snipped contributors...)


pkgdesc="Monospaced bitmap fonts"

package() {
  cd "${srcdir}/${_fontname}-${pkgver}"

  # Install font to its own dir.
  # (c.f.:
  install -dm755 "${pkgdir}/usr/share/fonts/${_fontname}"
  for font_file in spleen-*.otb; do install -Dm644 "${font_file}" \
    "${pkgdir}/usr/share/fonts/${_fontname}/${font_file}"; done
  for font_file in spleen-*.otf; do install -Dm644 "${font_file}" \
    "${pkgdir}/usr/share/fonts/${_fontname}/${font_file}"; done
  for font_file in spleen-*.psfu; do install -Dm644 "${font_file}" \
    "${pkgdir}/usr/share/kbd/consolefonts/${font_file}"; done
  install -Dm644 fonts.alias "${pkgdir}/usr/share/fonts/${_fontname}/fonts.alias"

  install -Dm644 AUTHORS "${pkgdir}/usr/share/doc/${pkgname}/AUTHORS"
  install -Dm644 "${pkgdir}/usr/share/doc/${pkgname}/"
  install -Dm644 ChangeLog "${pkgdir}/usr/share/doc/${pkgname}/ChangeLog"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

My questions:

  1. Should I create one AUR PKGBUILD to provide the *.otb, *.otf, and *.pfsu fonts? I see in the official repos, as well as in the AUR, that some fonts are split into separate packages (e.g. ttf, otf, etc.), and some are not. With a special mention to the Symbola font, which appears to me to be one package to install (one PKGBUILD), but then you get to separate packages installed on your system (_otf and _ttf), which you can uninstall as you wish (but not install as you wish). Which option is the best?

  2. Is the fonts.alias file installed in the correct directory this way?

  3. Should I use a Clean chroot when building packages? I read Building in a clean chroot, but I am not quite sure if this is what I need?

  4. What would be a good way to get notified of upstream updates and new releases so that I know when I need to update the PKGBUILD (this is a more general questions, as I maintain a few packages)?

  5. Do you have any other comments and improvements please?

Thank you for your time and feedback!

Last edited by lquidfire (2023-01-19 09:27:31)


Board footer

Powered by FluxBB