Skip to content

Instantly share code, notes, and snippets.

@connaisseur connaisseur/PKGBUILD
Created Apr 30, 2019

Embed
What would you like to do?
AUR ttf-ibm-plex-git complete PKGBUILD with pkgver() function + source line for firewalled hosts
# Maintainer: erk <valdemarerk at gmail dot com>
pkgname=ttf-ibm-plex-git
pkgver=1.4.1.r2.gdec2bc78
pkgrel=1
pkgdesc="IBM Plex"
arch=('any')
url='https://ibm.github.io/type/'
license=('SIL Open Font License, Version 1.1')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('git')
source=("${pkgname}"::"git+https://github.com/IBM/plex.git")
sha256sums=(SKIP)
pkgver() {
cd "${pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
install -d ${pkgdir}/usr/share/fonts/TTF
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Mono/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Sans-Condensed/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Sans/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
install -Dm644 ${srcdir}/${pkgname}/IBM-Plex-Serif/fonts/complete/ttf/*.ttf ${pkgdir}/usr/share/fonts/TTF
install -Dm644 ${srcdir}/${pkgname}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.