diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-10-20 19:18:28 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-11-04 22:47:58 -0300 |
commit | 62fca50d732e0850c9c86cae090c8445ca1b0b8f (patch) | |
tree | 9a1bc5e6f24b63ef76601472027e2f02b039ed6a /libre/pac | |
parent | af4a3f126cee8075f10ba59559aed0d906a37999 (diff) | |
download | abslibre-62fca50d732e0850c9c86cae090c8445ca1b0b8f.tar.gz abslibre-62fca50d732e0850c9c86cae090c8445ca1b0b8f.tar.bz2 abslibre-62fca50d732e0850c9c86cae090c8445ca1b0b8f.zip |
add ttf-pfc package
Diffstat (limited to 'libre/pac')
-rw-r--r-- | libre/pac/PKGBUILD | 31 | ||||
-rw-r--r-- | libre/pac/fonts.install | 13 |
2 files changed, 44 insertions, 0 deletions
diff --git a/libre/pac/PKGBUILD b/libre/pac/PKGBUILD new file mode 100644 index 000000000..f646dcc0e --- /dev/null +++ b/libre/pac/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +pkgbase=pac +pkgname=('ttf-pfc') +pkgver=20150920 +pkgrel=1 +url="https://projects.parabola.nu/pac.git" +license=('AGPL3') +arch=('any') +depends=('fontconfig' 'xorg-font-utils') +install='fonts.install' +makedepends=('fontforge' 'git') +source=("${pkgbase}::git+${url}") +sha256sums=('SKIP') + +build() { + cd "${pkgbase}" + make +} + +package_ttf-pfc() { + pkgdesc='Parabola Fonts Collection' + + cd "${pkgbase}" + install -vdm 755 ${pkgdir} + make DESTDIR="${pkgdir}" install-fonts + install -vdm 755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -vm 644 'COPYING'{,_AGPL_V3_0} "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/pac/fonts.install b/libre/pac/fonts.install new file mode 100644 index 000000000..a2d23dea6 --- /dev/null +++ b/libre/pac/fonts.install @@ -0,0 +1,13 @@ +post_install() { + fc-cache -s > /dev/null + mkfontscale usr/share/fonts/TTF + mkfontdir usr/share/fonts/TTF +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |