summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdcf41ae7ff99ffef3e4ab554feadd5caab1def8 (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
# Maintainer: tryashtar <tryashtar@gmail.com>
pkgname=minecraft-ttf-git
pkgver=1.3
pkgrel=1
pkgdesc="Pixel-accurate and complete TrueType fonts from Minecraft: Java Edition, generated automatically from the latest version of the game"
url="https://github.com/tryashtar/minecraft-ttf"
license=("custom")
arch=("any")
depends=()
makedepends=("git" "python" "python-fonttools" "python-pillow" "python-pygame" "python-requests")
source=("git+https://github.com/tryashtar/minecraft-ttf.git")
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/minecraft-ttf"
    git describe --tags --always | sed -e 's|^v||;s|-|.|g'
}

build() {
   cd "$srcdir/minecraft-ttf"
   python main.py
}

package() {
   install -Dm644 'minecraft-ttf/out/'*.ttf -t "${pkgdir}/usr/share/fonts/minecraft"
}