Package Details: sudo-font-git 0.40.r0.gf63cadf-1

Git Clone URL: https://aur.archlinux.org/sudo-font-git.git (read-only)
Package Base: sudo-font-git
Description: Monospaced font by jenskulitek
Upstream URL: https://www.kutilek.de/sudo-font/
Licenses: OFL
Submitter: m242
Maintainer: m242
Last Packager: m242
Votes: 0
Popularity: 0.000000
First Submitted: 2019-10-21 17:28
Last Updated: 2019-10-21 19:15

Latest Comments

m242 commented on 2019-10-21 19:27

Thank you very much :).

metak commented on 2019-10-21 19:25

  • the source line was missing
  • pkgver() function was missing since it's a -git package
  • most important, you should never download anything in package() function and the most important of all, pacman doesn't touch anything in user home dir ~. That's a big no-no. Your previous pkgbuild file didn't produce any binary package to install since it just copied fonts from /tmp to user home dir.

m242 commented on 2019-10-21 19:18

@metak: Applied the fix you provided, thanks a lot for sharing. About the "broken" part, did you mean that it wouldn't work on a fresh install, or that it wasn't written the right way ?

metak commented on 2019-10-21 19:08

Hi. Please fix your pkgbuild file because it's seriously broken.

pkgname=sudo-font-git
pkgver=0.40.r0.gf63cadf
pkgrel=1
pkgdesc="Monospaced font by jenskulitek"
url="https://www.kutilek.de/sudo-font/"
arch=('any')
license=('OFL')
depends=(fontconfig)
makedepends=(git)
source=("${pkgname%-*}::git+https://github.com/jenskutilek/sudo-font.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-*}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/^v//g'
}

package() {
  install -m 0755 -d "$pkgdir/usr/share/fonts/${pkgname%-*}"
  install -m 0644 -p "${pkgname%-*}"/sudo/*.ttf "$pkgdir/usr/share/fonts/${pkgname%-*}"
  install -Dm644 "${pkgname%-*}"/sudo/OFL.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}