diff --git a/srcpkgs/font-vazir b/srcpkgs/font-vazir new file mode 120000 index 00000000000..1b84961096e --- /dev/null +++ b/srcpkgs/font-vazir @@ -0,0 +1 @@ +font-vazirmatn \ No newline at end of file diff --git a/srcpkgs/font-vazir/template b/srcpkgs/font-vazir/template deleted file mode 100644 index d54cbcb2016..00000000000 --- a/srcpkgs/font-vazir/template +++ /dev/null @@ -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 " -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 -} diff --git a/srcpkgs/font-vazirmatn/files/conf.avail b/srcpkgs/font-vazirmatn/files/conf.avail new file mode 100644 index 00000000000..607df7acc8d --- /dev/null +++ b/srcpkgs/font-vazirmatn/files/conf.avail @@ -0,0 +1,10 @@ + + + + + Vazir + + VazirMatn + + + diff --git a/srcpkgs/font-vazirmatn/template b/srcpkgs/font-vazirmatn/template new file mode 100644 index 00000000000..de1483705ba --- /dev/null +++ b/srcpkgs/font-vazirmatn/template @@ -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 " +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)" +}