Generate PKGBUILD for TTF/OTF font.
Simple python3 script for generate PKGBUILD for TTF/OTF font. The PKGBUILD generated by this script doesn't satisfy the Arch packaging standards, so you shoud use the package only for you. The PKGBUILD and .install are based on ArchWiki's article.
usage: fontpkggen [-h] [-a] [-f] [--pkgver PKGVER] [--pkgrel PKGREL]
[--pkgdesc PKGDESC]
pkgname fontfiles [fontfiles ...]
TTF/OTF font PKGBUILD and .install generator
positional arguments:
pkgname Package name
fontfiles TTF/OTF font files
optional arguments:
-h, --help show this help message and exit
-a, --auto Make [pkgname] directory, copy fonts, generate PKGBUILD
-f, --force Replace existing file
--pkgver PKGVER Package version default=1.0
--pkgrel PKGREL Package release number default=1
--pkgdesc PKGDESC Package description default='[pkgname] font'
$ fontpkggen -a ttf-foo foo.ttf ~/bar.ttf
$ ls ttf-foo
PKGBUILD bar.ttf foo.ttf ttf-foo.install
$ cd ttf-foo
$ makepkg
MIT