blob: 33c43a79bb003d948e2cfdcd22c3b181c9ee8404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Jonathon Fernyhough <jonathon_at_manjaro dot_org>
pkgname=otf-ibm-plex-git
_pkgname=otf-ibm-plex
pkgver=latest
pkgrel=2
pkgdesc='IBM Plex Mono, Sans, and Serif typefaces (OTF version)'
arch=('any')
url='https://github.com/IBM/plex'
license=('sil')
makedepends=('git')
provides=("$_pkgname"
'otf-ibm-plex-mono'
'otf-ibm-plex-sans'
'otf-ibm-plex-sans-condensed'
'otf-ibm-plex-serif')
conflicts=("$_pkgname")
source=("${_pkgname}::git+https://github.com/IBM/plex.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
# https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function
( set -o pipefail
git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$_pkgname"
for variant in Mono Sans Sans-Condensed Serif; do
install -d "$pkgdir"/usr/share/fonts/OTF/ibm-plex/${variant,,}
install -Dm644 IBM-Plex-${variant}/fonts/complete/otf/*.otf "$pkgdir"/usr/share/fonts/OTF/ibm-plex/${variant,,}
done
# License
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/license.md
}
|