Unable to create functional PKGBUILD for font collection
I am trying to create my first package with a collection of some fonts I use, to install on my Arch Linux system. I followed the relevant instructions to create a package for my fonts, but while I modified the template PKGBUILD accordingly I get the error "install: cannot stat 'OTF/*.otf': No such file or directory" (when I hash out the relevant line I get the same error for all "install" commands).
I uploaded the necessary files in my GitHub repo and made the following PKGBUILD. Code:
pkgname=free-metal-fonts |
Well the error is clear. You are trying to open a directory that doesn't exist (OTF).
|
Unable to create functional PKGBUILD for font collection
Adjust the script to take the directory listing of the font files and loop through each one. Then copy each font into the desired location. I think you problem is due to the install command being unable to expand the directory listing. Check the man page.
Edit:. You could also simplify it all by using the cp command to copy the files and the chmod command to set the permissions. |
^ fwiw i read recently on bbs.archlinux.org that creators of PKGBUILDs are encouraged to use 'install' instead of sudo-copying etc.
i am positive that the install command can achieve what is desired here. Code:
man install |
I modified the PKGBUILD based on some other font packages (e.g.the otf-gfs) as shown below. The PKGBUILD now functions when I have the tarball on my system and give the PGKBUILD that particular sha256sum, but when I attempt to download it from my git repo I get a validation error and when I check the sha256sum is different. Any idea how to solve this?
Code:
pkgname=free-metal-fonts |
Quote:
|
All times are GMT -5. The time now is 08:44 PM. |