core/ttf-liberation/PKGBUILD
2012-09-26 17:10:33 +00:00

37 lines
1.1 KiB
Bash

#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=ttf-liberation
pkgver=2.00.0
pkgrel=1
pkgdesc="Red Hats Liberation fonts"
arch=('any')
license=('custom' 'GPL2')
url="https://www.redhat.com/promo/fonts/"
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
makedepends=('fontforge')
install=$pkgname.install
source=("https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${pkgver}.tar.gz")
sha256sums=('a4c5ca86da2319d66f657257c7b5b7cd56162e3bfc5396c873fb21e3f7eaf075')
build() {
cd "${srcdir}/liberation-fonts-${pkgver}"
make
}
package() {
install -d "${pkgdir}/usr/share/fonts/TTF/"
cd "${srcdir}/liberation-fonts-${pkgver}/liberation-fonts-ttf-${pkgver}"
install -m0644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"
# install custom license text
install -Dm0644 "${srcdir}/liberation-fonts-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}