summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e0dde0781dda75905dac9f03282b310b3bb8ea5 (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
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgbase=xsg-fonts
pkgname=(xsg-fonts-bdf xsg-fonts-otb xsg-fonts-pcf)
pkgdesc='Condensed terminal emulator Unicode bitmap font'
pkgver=0.2024.12.08
pkgrel=1
url=https://codeberg.org/nereusx/xsg-fonts
arch=(any)
license=(OFL-1.1)
makedepends=(fontforge git xorg-bdftopcf xorg-fonttosfnt)
_commit_id=0f3e6e403d211398a9341fd983cabe29a26c8647
source=("${pkgbase}-${pkgver}::git+${url}.git#commit=${_commit_id}" Makefile)
b2sums=('SKIP'
        '8c0cf64ecb1db6e30e5b0e50e7d6de4fbd96acbab351e9ca00921f645fc207728953b9eba6f59a2b445902351b331ab2671972852cfff96cf66f4675e0e80ece')

build ()
{
	cd "${pkgbase}-${pkgver}"
	make -f "${srcdir}/Makefile"
}

_package ()
{
	pkgdesc+=" (${pkgname##*-} format)"
	install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgbase}" "$@"
}

package_xsg-fonts-bdf ()
{
	cd "${pkgbase}-${pkgver}"
	_package *.bdf
}

package_xsg-fonts-otb ()
{
	cd "${pkgbase}-${pkgver}"
	_package *.otb
}

package_xsg-fonts-pcf ()
{
	cd "${pkgbase}-${pkgver}"
	_package *.pcf.gz
}