[aur-general] My first PKGBUILD (ttf font)
Ian Brunton
iandbrunton at gmail.com
Sun May 15 09:24:01 EDT 2011
On Sun, May 15, 2011 at 03:09:47PM +0200, Kwpolska wrote:
> On Sun, May 15, 2011 at 09:54:36AM -0300, Ian Brunton wrote:
> > 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
> Apply Jesse Jarra's changes, change build() to package() and you'll
> be fine.
> --
> Cheers,
> -- Kwpolska (http://kwpolska.co.cc)
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Thanks. I used build() because that's what's in the wiki's page about
creating font packages
(https://wiki.archlinux.org/index.php/Fonts#Creating_a_package). I've
changed it now.
--
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=('custom')
url=(http://www.shyfoundry.com/)
source=(http://www.shyfoundry.com/fonts/download/win/sfdigitalr.zip)
md5sums=('1659ad07af649b940e2b16a3c8327f91')
install=$pkgname.install
package()
{
mkdir -p "$pkgdir/usr/share/fonts/TTF"
cp "$srcdir/TrueType/*.ttf" "$pkgdir/usr/share/fonts/TTF"
mkdir -p "$pkgdir/usr/share/licences/ttf-digital-readout"
cp "$srcdir/ShyFoundry Freeware EULA.pdf" "$pkgdir/usr/share/licences/ttf-digital-readout/"
}
More information about the aur-general
mailing list