# $Id: PKGBUILD 80169 2012-11-17 12:41:05Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Ronald van Haren # Contributor: Roman Kyrylych # Contributor: Andreas Zwinkau # Contributor: rabyte # Contributor: Stefan Husmann < stefan-husmann@t-online.de> pkgname=ttf-liberation pkgver=2.00.1 pkgrel=2 pkgdesc='Red Hats Liberation fonts.' arch=('any') license=('custom:OFL') url='https://www.redhat.com/promo/fonts/' depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils') makedepends=('fontforge') install=ttf.install source=("https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-$pkgver.tar.gz" 30-0-liberation-mono.conf 30-0-liberation-sans.conf 30-0-liberation-serif.conf) md5sums=('5c781723a0d9ed6188960defba8e91cf' '23ce227d5d72c6df2c69caf367d96341' '88e91e718053d46cb1215067ffb0024a' '5bc229f0f7ad387f1ba311148fcbff00') package() { cd "$srcdir/liberation-fonts-ttf-$pkgver" install -d "$pkgdir/usr/share/fonts/TTF/" install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/" # install fontconfig files install -Dm0644 ../30-0-liberation-mono.conf "$pkgdir/etc/fonts/conf.avail/30-$pkgname-mono.conf" install -Dm0644 ../30-0-liberation-sans.conf "$pkgdir/etc/fonts/conf.avail/30-$pkgname-sans.conf" install -Dm0644 ../30-0-liberation-serif.conf \ "$pkgdir/etc/fonts/conf.avail/30-$pkgname-serif.conf" # install license install -Dm644 "${srcdir}/liberation-fonts-ttf-${pkgver}/LICENSE" \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }