This is my first attempt at creating a package. It's for a TTF font. I
know it works, at least on my machine. I'd appreciate any feedback on
whether I've put everything together correctly. Specifically, I'm unsure
about how to handle the license; this font comes with a custom "freeware
EULA" which is available on the original website and is included in the
ZIP file; what would be the most correct way to specify the license in
the PKGBUILD file?

PKGBUILD and install file are attached.

Thank you
-- 
Ian Brunton
[email protected]
http://laygeek.wordpress.com
# Maintainer: Ian Brunton <iandbrunton at gmail dot com>
pkgname=ttf-digital-readout
pkgver=1.1
pkgrel=1
depends=('fontconfig' 'xorg-font-utils')
pkgdesc="Several styles of digital readouts including condensed, upright, 
slanted, and thick."
arch=('any')
license=(http://www.shyfoundry.com/licensing/freeware-eula.html)
url=(http://www.shyfoundry.com/)
source=(http://www.shyfoundry.com/fonts/download/win/sfdigitalr.zip)
md5sums=('1659ad07af649b940e2b16a3c8327f91')
install=$pkgname.install

build()
{
  mkdir -p $pkgdir/usr/share/fonts/TTF
  cp $srcdir/TrueType/*.ttf $pkgdir/usr/share/fonts/TTF
}
post_install()
{
  echo -n "Updating font cache..."
  fc-cache -fs >/dev/null
  mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
  mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
  echo "done"
}

post_upgrade()
{
  post_install
}

Reply via email to