Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Latest commit

 

History

History
46 lines (34 loc) · 1.27 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.27 KB

fontpkggen

Generate PKGBUILD for TTF/OTF font.

Description

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

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'

Demo

$ fontpkggen -a ttf-foo foo.ttf ~/bar.ttf
$ ls ttf-foo
PKGBUILD  bar.ttf  foo.ttf  ttf-foo.install
$ cd ttf-foo
$ makepkg

License

MIT