blob: 856ea4010ed21089c8c20560c90327b9df2e98ed (
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
|
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports
pkgbase=comic-neue
pkgname=(ttf-comic-neue otf-comic-neue)
pkgver=2.51
pkgrel=1
pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font'
arch=('any')
url='http://comicneue.com'
license=('custom:OFL')
source=("${url}/${pkgbase}-${pkgver}.zip"
'fontconfig.conf')
sha256sums=('54dd998c93b8d6658b1c2d6ade9f790d10ffaa3632868dd2cfac84b405290321'
'c30876b732eaf4b6491642a53651b31259ba36308c4e668b1e37ad2c8ad86088')
function _package {
cd "${pkgbase}-${pkgver}"
case "${1}" in
ttf-comic-neue)
pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font'
cd TTF
fonts=(ComicNeue/*.ttf ComicNeue-Angular/*.ttf)
installdir=TTF;;
otf-comic-neue)
pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font'
cd OTF
fonts=(ComicNeue/*.otf ComicNeue-Angular/*.otf)
installdir=OTF;;
esac
install -dm755 "${pkgdir}/usr/share/fonts/${installdir}"
for font in "${fonts[@]}"; do
install -m644 "${font}" "${pkgdir}/usr/share/fonts/${installdir}"
done
install -D -m644 ../../fontconfig.conf \
"${pkgdir}/usr/share/fontconfig/conf.avail/75-${pkgname}.conf"
install -D -m644 ../OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
for _pkgname in ${pkgname[@]}; do
eval "function package_${_pkgname}() { _package ${_pkgname}; }"
done
|