blob: 724aa376b2537f908c632eaef30d63a33aa17957 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: pkfbcedkrz <pkfbcedkrz@gmail.com>
# Contributor: Ryan Farley <ryan.farley@gmx.com>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=xorg-fonts-100dpi-otb
pkgver=1.0.3
pkgrel=8
pkgdesc="X.org 100dpi fonts (OTB version)"
arch=('any')
url="https://gitlab.freedesktop.org/"
license=('custom')
makedepends=('fonttosfnt-git')
source=(${url}/xorg/font/adobe-100dpi/-/archive/master/adobe-100dpi-master.tar.gz
${url}/xorg/font/adobe-utopia-100dpi/-/archive/master/adobe-utopia-100dpi-master.tar.gz
${url}/xorg/font/bh-100dpi/-/archive/master/bh-100dpi-master.tar.gz
${url}/xorg/font/bh-lucidatypewriter-100dpi/-/archive/master/bh-lucidatypewriter-100dpi-master.tar.gz
${url}/xorg/font/bitstream-100dpi/-/archive/master/bitstream-100dpi-master.tar.gz)
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
build() {
cd "${srcdir}"
for dir in *; do
if [ -d "${dir}" ]; then
pushd "${dir}"
shopt -s nullglob
for f in *.bdf; do
if grep -Fq 'FAMILY_NAME "' "$f" 2>/dev/null; then
family_name="$(grep -F 'FAMILY_NAME "' "$f")"
family_name="${family_name%\"}"
family_name_otb="$family_name (OTB)"
sed -i "s/$family_name/$family_name_otb/" "$f"
fi
fonttosfnt -b -c -g 2 -m 2 -o "${f/bdf/otb}" "$f"
done
shopt -u nullglob
popd
fi
done
}
package() {
cd "${srcdir}"
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m755 -d "${pkgdir}/usr/share/fonts/100dpi"
for dir in *; do
if [ -d "${dir}" ]; then
pushd "${dir}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.${dir%-100dpi-*}"
shopt -s nullglob
for f in *.otb; do
install -m644 "$f" "${pkgdir}/usr/share/fonts/100dpi/${f}"
done
shopt -u nullglob
popd
fi
done
}
|