mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
New package: font-vazirmatn-33.003
Co-authored-by: Đoàn Trần Công Danh <sgn.danh@gmail.com>
This commit is contained in:
parent
d958aaefa4
commit
4b662c5b3b
4 changed files with 57 additions and 20 deletions
1
srcpkgs/font-vazir
Symbolic link
1
srcpkgs/font-vazir
Symbolic link
|
@ -0,0 +1 @@
|
|||
font-vazirmatn
|
|
@ -1,20 +0,0 @@
|
|||
# Template file for 'font-vazir'
|
||||
pkgname=font-vazir
|
||||
version=30.1.0
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
depends="font-util"
|
||||
short_desc="Persian (Farsi) Font - قلم (فونت) فارسی وزیر"
|
||||
maintainer="linarcx <linarcx@gmail.com>"
|
||||
license="OFL-1.1"
|
||||
homepage="https://github.com/rastikerdar/vazir-font"
|
||||
distfiles="https://github.com/rastikerdar/vazir-font/releases/download/v${version}/vazir-font-v${version}.zip"
|
||||
checksum=0b10a9624f45b00c68a22b5727697ebc0ed94d5bf067e81cdad02d5e7e91f02d
|
||||
|
||||
font_dirs="/usr/share/fonts/TTF"
|
||||
|
||||
do_install() {
|
||||
for f in ./*.ttf; do
|
||||
vinstall "$f" 644 usr/share/fonts/TTF
|
||||
done
|
||||
}
|
10
srcpkgs/font-vazirmatn/files/conf.avail
Normal file
10
srcpkgs/font-vazirmatn/files/conf.avail
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Vazir</family>
|
||||
<prefer>
|
||||
<family>VazirMatn</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
46
srcpkgs/font-vazirmatn/template
Normal file
46
srcpkgs/font-vazirmatn/template
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Template file for 'font-vazirmatn'
|
||||
pkgname=font-vazirmatn
|
||||
version=33.003
|
||||
revision=1
|
||||
depends="font-util"
|
||||
short_desc="Persian/Arabic font"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="OFL-1.1"
|
||||
homepage="https://github.com/rastikerdar/vazirmatn"
|
||||
changelog="https://raw.githubusercontent.com/rastikerdar/vazirmatn/refs/heads/master/CHANGELOG.md"
|
||||
distfiles="https://github.com/rastikerdar/vazirmatn/releases/download/v${version}/vazirmatn-v${version}.zip"
|
||||
checksum=0a9afd41967e6f57096a56a181a23f81a2b999b62f1f2a4e4b26736580854fdb
|
||||
nostrip=yes
|
||||
|
||||
do_install() {
|
||||
fonts_dir="/usr/share/fonts/vazirmatn"
|
||||
vmkdir "$fonts_dir"
|
||||
for file in \
|
||||
./fonts/ttf/*.ttf \
|
||||
./Round-Dots/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/Farsi-Digits/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/Farsi-Digits-Non-Latin/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/Non-Latin/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/UI/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/UI-Farsi-Digits-Non-Latin/fonts/ttf/*.ttf \
|
||||
./Round-Dots/misc/UI-Non-Latin/fonts/ttf/*.ttf \
|
||||
./misc/Farsi-Digits/fonts/ttf/*.ttf \
|
||||
./misc/Farsi-Digits-Non-Latin/fonts/ttf/*.ttf \
|
||||
./misc/Non-Latin/fonts/ttf/*.ttf \
|
||||
./misc/UI/fonts/ttf/*.ttf \
|
||||
./misc/UI-Farsi-Digits/fonts/ttf/*.ttf \
|
||||
./misc/UI-Farsi-Digits-Non-Latin/fonts/ttf/*.ttf \
|
||||
./misc/UI-Non-Latin/fonts/ttf/*.ttf
|
||||
do
|
||||
vinstall "$file" 644 "$fonts_dir"
|
||||
done
|
||||
|
||||
vinstall ${FILESDIR}/conf.avail 644 etc/fonts/conf.avail 60-vazirmatn.conf
|
||||
vlicense OFL.txt LICENSE
|
||||
}
|
||||
|
||||
font-vazir_package() {
|
||||
metapackage=yes
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - (transitional dummy package)"
|
||||
}
|
Loading…
Add table
Reference in a new issue