You are not logged in.

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

lquidfire
Member
From: South Africa
Registered: 2017-07-26
Posts: 74

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...)

_fontname=spleen

pkgname=spleen-font
pkgver=1.9.1
pkgrel=2
pkgdesc="Monospaced bitmap fonts"
arch=('any')
license=('BSD')
url="https://www.cambus.net/spleen-monospaced-bitmap-fonts/"
conflicts=('bdf-spleen')
source=(
  "https://github.com/fcambus/spleen/releases/download/${pkgver}/spleen-${pkgver}.tar.gz"
)
sha256sums=(
  '7ef59c4e02a45e9dded6bca18b539cdf0f0eb49e6cbcb257858da56ac5daa622'
)

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

  # Install font to its own dir.
  # (c.f.: https://archlinux.org/todo/fix-ttf-font-default-font-setup/)
  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 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  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)

Offline

Board footer

Powered by FluxBB