blob: a299a4942aa1f109e83d221aa6061385e4fd40ba (
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
|
# Maintainer: Edmund Lodewijks <e.lodewijks@gmail.com>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
_fontname=spleen
pkgname=spleen-font
pkgver=2.1.0
pkgrel=1
pkgdesc="Monospaced bitmap fonts for user interface including console (OTB, OTF, PSFU)"
arch=('any')
license=('BSD-2-Clause')
url="https://www.cambus.net/spleen-monospaced-bitmap-fonts/"
conflicts=('bdf-spleen')
source=(
"https://github.com/fcambus/spleen/releases/download/${pkgver}/spleen-${pkgver}.tar.gz"
)
sha256sums=('8b47c56f1a6eb858fbcf9e34530557404b02fbb3455e38e64fb84473fd0c372f')
package() {
cd "${srcdir}/${_fontname}-${pkgver}"
# Install font to its own dir.
# (c.f.: https://archlinux.org/todo/fix-ttf-font-default-font-setup/)
install -dm755 "${pkgdir}/usr/share/fonts/${_fontname}"
for font_file in spleen-*.otb; do install -Dm644 "${font_file}" \
"${pkgdir}/usr/share/fonts/${_fontname}/${font_file}"; done
for font_file in spleen-*.otf; do install -Dm644 "${font_file}" \
"${pkgdir}/usr/share/fonts/${_fontname}/${font_file}"; done
for font_file in spleen-*.psfu; do install -Dm644 "${font_file}" \
"${pkgdir}/usr/share/kbd/consolefonts/${font_file}"; done
install -Dm644 fonts.alias "${pkgdir}/usr/share/fonts/${_fontname}/fonts.alias"
install -Dm644 AUTHORS "${pkgdir}/usr/share/doc/${pkgname}/AUTHORS"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 ChangeLog "${pkgdir}/usr/share/doc/${pkgname}/ChangeLog"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|