summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD3SOX2021-10-04 21:44:23 +0200
committerD3SOX2021-10-04 21:44:23 +0200
commit38dcec78d6dd98a1adb855ad5f373bc9b4b9e448 (patch)
treea78fb18a5bfd6f06d66d02f72843f2dadbb54abd
parent9953ef330ecaf6e442b92cdbeabb191b7f8f279a (diff)
downloadaur-38dcec78d6dd98a1adb855ad5f373bc9b4b9e448.tar.gz
add version to font file to prevent caching by aur helpers
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c4c5d0739f68..bc3e2e8500e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nerd-fonts-sf-mono
pkgdesc = Monospaced variant of San Francisco. Sourced directly from Apple, patched with the Nerd Fonts Patcher
pkgver = 2.1.0
- pkgrel = 4
+ pkgrel = 5
url = https://developer.apple.com/fonts/
arch = any
license = custom
@@ -12,7 +12,7 @@ pkgbase = nerd-fonts-sf-mono
makedepends = subversion
provides = nerd-fonts-sf-mono
conflicts = nerd-fonts-sf-mono
- source = https://developer.apple.com/design/downloads/SF-Mono.dmg
+ source = SF-Mono-.dmg::https://developer.apple.com/design/downloads/SF-Mono.dmg
source = font-patcher-2.1.0::https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v2.1.0/font-patcher
source = allow-glyphdir.diff
source = svn+https://github.com/ryanoasis/nerd-fonts/tags/v2.1.0/src/glyphs
diff --git a/PKGBUILD b/PKGBUILD
index 73b7e0db10e7..1cb3dc6cabe2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Nico <d3sox at protonmail dot com>
pkgname=nerd-fonts-sf-mono
pkgver=2.1.0
-pkgrel=4
+pkgrel=5
+_fontver=7
pkgdesc="Monospaced variant of San Francisco. Sourced directly from Apple, patched with the Nerd Fonts Patcher"
arch=('any')
url='https://developer.apple.com/fonts/'
@@ -9,7 +10,7 @@ license=('custom')
makedepends=('git' 'p7zip' 'python' 'fontforge' 'subversion')
conflicts=('nerd-fonts-sf-mono')
provides=('nerd-fonts-sf-mono')
-source=('https://developer.apple.com/design/downloads/SF-Mono.dmg' "font-patcher-$pkgver::https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v$pkgver/font-patcher" "allow-glyphdir.diff" "svn+https://github.com/ryanoasis/nerd-fonts/tags/v$pkgver/src/glyphs")
+source=("SF-Mono-$fontver.dmg::https://developer.apple.com/design/downloads/SF-Mono.dmg" "font-patcher-$pkgver::https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v$pkgver/font-patcher" "allow-glyphdir.diff" "svn+https://github.com/ryanoasis/nerd-fonts/tags/v$pkgver/src/glyphs")
sha256sums=('76c415e9aee0524087cc6a042113db6b38f1a19f2e286f807aa29756461370a9' '3377615be4271f8bdeef66e6f2f82ac3f3cfb7b5677abe7b8e189409da048859' '6fad8dead6215b1d8cedbbce3d1bc1fc7c1b0bb06ea70518334bd443a7ba543f' 'SKIP')
build() {
@@ -19,7 +20,7 @@ build() {
# remove previous files
rm -rf SFMonoFonts
# extract dmg
- 7z x SF-Mono.dmg
+ 7z x "SF-Mono-$_fontver.dmg"
# extract pkg
bsdtar xvPf "SFMonoFonts/SF Mono Fonts.pkg"
bsdtar xvPf "SFMonoFonts.pkg/Payload"