blob: 9b0f741371bc9c889bc04ebb3efac6135589dd32 (
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: Axel McLaren <scm(at)axml(dot)uk>
pkgname=ohsnapmod-otb
_commit=425ba6590d
_pkgver=1.0.0
pkgver=1.0.0.r17.425ba65
pkgrel=1
pkgdesc="patched version of the ohsnap font (OTB version)"
arch=('any')
license=('MIT')
makedepends=('git' 'fonttosfnt-git')
url="https://codeberg.org/h3xx/ohsnapmod"
source=("${pkgname}-${_pkgver}::git+https://codeberg.org/h3xx/ohsnapmod#commit=${_commit}")
sha256sums=('b2b9b55fce23bf0cb2f14d5dbcf997bd3c2ef0ac2ddc947759a0087357a40e4d')
pkgver() {
cd "${pkgname}-${_pkgver}"
printf "${_pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname}-${_pkgver}"
for f in *.bdf; do
fonttosfnt -c -o "${f/bdf/otb}" "$f"
done
}
package() {
cd "${pkgname}-${_pkgver}"
install -Dm644 -t "${pkgdir}/usr/share/fonts/misc" *.otb
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|