diff options
author | Patrick M | 2022-05-17 01:02:39 +0200 |
---|---|---|
committer | Patrick M | 2022-05-17 01:02:39 +0200 |
commit | ab389cffb491a782e67ec6c836e5c2303b93ba01 (patch) | |
tree | cc1f31a3349b3d67878d20fe86dbc980d71f26f9 /PKGBUILD | |
download | aur-ab389cffb491a782e67ec6c836e5c2303b93ba01.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1be6b7eb4f7c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Patrick M. <aur at patrickmang dot de> + +pkgname=ttf-gofont-git +pkgver=r328.70e8d0d +pkgrel=1 +pkgdesc="The font for the experimental Go user interface toolkit" +arch=('any') +url="https://go.dev/blog/go-fonts" +license=('custom') +source=("git+https://go.googlesource.com/image") +sha512sums=('SKIP') + +pkgver() { + cd "image" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${srcdir}/image" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd "font/gofont/ttfs" + install -Ddm755 "${pkgdir}/usr/share/fonts/Go" + install -Dm644 "Go-Bold-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Bold.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Medium-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Medium.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Mono-Bold-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Mono-Bold.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Mono-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Mono.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Regular.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Smallcaps-Italic.ttf" "${pkgdir}/usr/share/fonts/Go/" + install -Dm644 "Go-Smallcaps.ttf" "${pkgdir}/usr/share/fonts/Go/" +} |