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
pkgver=0.1
_relver=0.1
pkgrel=1
pkgdesc="This is a collection of rock and metal style free fonts compiled by Neyzan (NeyzanRumi)"
url="https://github.com/NeyzanRumi/Font-Collections/tree/master/Free-Metal-Fonts/"
arch=(any)
license=(SIL OFL v1.1 and GNU GPL v3)
_tarname=free-metal-fonts-${_relver//\//-}
source=("$_tarname.tar.gz::https://github.com/NeyzanRumi/Font-Collections/tree/master/Free-Metal-Fonts/$_relver.tar.gz")
sha256sums=('ef3180aab212b839e99665db67a821c074e8107ed4401878acff92e293d5d84d')
package() {
cd $_tarname
install -d "$pkgdir/usr/share/fonts/${pkgname%-fonts}"
install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 OTF/*.otf
install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 TTF/*.ttf
install -Dm644 OFL "$pkgdir/usr/share/licenses/$pkgname/OFL"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 README.md "$pkgdir/usr/share/licenses/$pkgname/README.md"
}
# vim:set ts=2 sw=2 et:
Can anyone tell me were I went wrong?