You are not logged in.
Hi, I've successfully made my first working (on my machine™) PKGBUILD for ttf phosphor icons.
Here it is:
# Maintainer : kStor2poche <kStor2poche [at] orange [dot] fr>
_fontname="phosphor-icons"
pkgname="ttf-${_fontname}"
pkgver="2.1.0"
pkgrel=1
pkgdesc="A flexible icon family for interfaces, diagrams, presentations — whatever, really."
arch=("any")
url="https://phosphoricons.com"
license=("MIT")
source=("${_fontname}.zip"::"https://github.com/${_fontname}/homepage/releases/download/v${pkgver}/${_fontname}.zip")
sha256sums=("d4dabb1e4c5aeb67ed67d9dc3f47d8b9e7c57cff37d9c35da75a1fc17eaa11ea")
package() {
install -Dm644 "Fonts"/*/*.ttf -t "${pkgdir}/usr/share/fonts/TTF/"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
However, I am not sure this is how you should handle release tags (that is statically), when the files you are trying to package are only in a release's assets and not in the source files.
Furthermore, I have been trying to use "pkgctl build" as good practice, but could not make this command work, and didn't understand exactly why. The last lines when running it in the same directory as my PKGBUILD were
==> Running checkpkg
error: target not found: ttf-phosphor-icons
Thanks in advance for the help!
Last edited by kStor2poche (2025-02-20 18:00:55)
Offline
Only issue I see is in renaming the source file. Right now, you're renaming it to the same as what it already is, which is pointless, but it needs to be renamed so it's unique on each update. As it is now, makepkg will find the old file as it's the same name and error out. Add $pkgver in there.
The checkpkg error is just from when it tries to compare the new package to the repo version. Not an issue here.
Offline
Ok, will modify that, thank you very much for the feedback!
Offline