36aa27e27d
closes #96
81 lines
3.7 KiB
Bash
81 lines
3.7 KiB
Bash
# Template file for 'nerd-fonts'
|
|
pkgname=nerd-fonts
|
|
version=2.0.0
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc=NerdFonts
|
|
depends="font-util xbps-triggers nerd-fonts-ttf nerd-fonts-otf"
|
|
short_desc="Iconic font aggregator, collection and patcher"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://nerdfonts.com"
|
|
distfiles="https://gitlab.com/devopsdeluxe/nerd-fonts-aur/raw/v${version}/release/NerdFonts.tar.xz
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/LICENSE>LICENSE.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_all.sh>i_all.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_dev.sh>i_dev.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_fa.sh>i_fa.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_fae.sh>i_fae.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_iec.sh>i_iec.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_linux.sh>i_linux.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_material.sh>i_material.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_oct.sh>i_oct.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_ple.sh>i_pie.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_pom.sh>i_pom.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_seti.sh>i_seti.sh.txt
|
|
https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}/bin/scripts/lib/i_weather.sh>i_weather.sh.txt"
|
|
checksum="6e203ec84af9f55959141025a96ad3788c8edc7777b7dbcc1fafa600214c1213
|
|
d2a29823384e9194a87936ccad495c764c2ef733b29bfa6f72a1d65803ce02e5
|
|
036361c808c84242b819ba24246f205b283ae51ba5d5d3304848f999a3ff0622
|
|
254f32ceca71d36afee8ddbcd2c98a5de06ab7d7579f03e693987501bef6476b
|
|
f3d00c7188f9499911c8215483cb9b430fa1873f531fa57fd30ca20f0cad5314
|
|
09cfd8e5748c6401ee2bae24b95eb1c98cb7f7a4200c6337b741084612091b1c
|
|
f0fe3eac3a979610153ca60611954cf4baba133e1268f395e2f61a8b800d26dd
|
|
3406824f07f7b92757d88356f9f3d89e2270eae0f2862205e7ed1eb8bd294eaf
|
|
cddb161c6b4a3ec5f4e4d1723ebc9ce0bea6da572bbb940999a05eaf9ad52d74
|
|
67ab5c4bb0d4d057c4d6cd34075a8643f6f845977a2c57d56f05ac931b2f54f0
|
|
d94a7c8ede808826258ed651f040bf4d3904fbf81c722692359b5ca5f30d6135
|
|
50be7ad9d955a05ba56badabde7992cf5277cc2ccb2348af3293a517bfaefe9d
|
|
3245d4859e7c4fe311e79599a406af84564c079d0ba5f36d3a458ee646ca5aac
|
|
ced3b935d4f4a04e98da215862de6b6ab4282669fd20ff0b039c913b2f322dec"
|
|
|
|
do_install() {
|
|
vmkdir usr/share/fonts/NerdFonts/otf
|
|
vmkdir usr/share/fonts/NerdFonts/ttf
|
|
vmkdir usr/lib/NerdFonts
|
|
|
|
for otf in *.otf; do
|
|
vinstall "$otf" 644 usr/share/fonts/NerdFonts/otf
|
|
done
|
|
|
|
while read -r ttf; do
|
|
# This fails horribly due to some possible mangling
|
|
# vinstall "$tff" 644 usr/share/fonts/NerdFonts/ttf
|
|
install -m 644 "$ttf" ${DESTDIR}/usr/share/fonts/NerdFonts/ttf
|
|
done < <(find . -name '*.ttf')
|
|
|
|
while read -r sh; do
|
|
vinstall $sh 755 usr/lib/NerdFonts ${sh%%.txt}
|
|
done < <(find ../ -maxdepth 1 -name "i_*.sh.txt")
|
|
|
|
vlicense ../LICENSE.txt
|
|
}
|
|
|
|
nerd-fonts-otf_package() {
|
|
archs=noarch
|
|
short_desc="Iconic font aggregator, collection and patcher - otf fonts"
|
|
font_dirs="usr/share/fonts/NerdFonts/otf"
|
|
depends="font-util xbps-triggers"
|
|
pkg_install() {
|
|
vmove usr/share/fonts/NerdFonts/otf
|
|
}
|
|
}
|
|
|
|
nerd-fonts-ttf_package() {
|
|
archs=noarch
|
|
short_desc="Iconic font aggregator, collection and patcher - ttf fonts"
|
|
font_dirs="usr/share/fonts/NerdFonts/ttf"
|
|
depends="font-util xbps-triggers"
|
|
pkg_install() {
|
|
vmove usr/share/fonts/NerdFonts/ttf
|
|
}
|
|
}
|