summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22e32b7748ca91e54116898222ae2937ea3a7ee6 (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: FerrousInk <ferrousink-aur@proton.me>

pkgname=ttf-windows-fonts
pkgver=1.1.0
pkgrel=2
pkgdesc="All of the fonts needed for proper Microsoft services with automated installation"
arch=('any')
source=(fonts.iso::http://software-static.download.prss.microsoft.com/pr/download/19042.631.201119-0144.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x86FRE_en-us.iso)
sha256sums=('SKIP')
depends=('wimlib' 'sudo')

prepare() {
    mkdir wim-mount
    mkdir fonts
    mkdir iso-mount

    sudo mount fonts.iso iso-mount
    cp iso-mount/sources/install.wim ./fonts.wim
    sudo umount iso-mount

    wimlib-imagex mount fonts.wim wim-mount
    cp wim-mount/Windows/Fonts/*.ttf fonts
    wimlib-imagex unmount wim-mount

    sudo cp -r fonts /usr/share/fonts/TTF
}