mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 05:57:14 +08:00
37 lines
1.1 KiB
Bash
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"
|
|
}
|
|
|