[aur-general] My first PKGBUILD (ttf font)
Ian Brunton
iandbrunton at gmail.com
Sun May 15 08:54:36 EDT 2011
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
iandbrunton at gmail.com
http://laygeek.wordpress.com
-------------- next part --------------
# 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
}
-------------- next part --------------
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
}
More information about the aur-general
mailing list