makedeb


nerd-fonts-jetbrains-mono 2.3.3-1


A Nerd Font patched version of JetBrains Mono

Click here to go back to the commit logs for nerd-fonts-jetbrains-mono.

Commit:


Hash: 1871d87c74dcdf61eadbcee3934bd072bbda34e3

Message: added otf install if found any

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 8544f22..52c1f0b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,8 +9,12 @@ pkgbase = nerd-fonts-jetbrains-mono
 	arch = any
 	license = MIT
 	makedepends = fontconfig
-	conflicts = nerd-fonts
+	provides = nerd-fonts-jetbrains-mono
+	conflicts = nerd-fonts-jetbrains-mono
+	replaces = nerd-fonts-jetbrains-mono
 	source = JetBrainsMono-2.1.0.zip::https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
-	sha256sums = 842013fa44b6896d4eb91635a81ef75244d78d7f61ff866c9dfd3315a67788cd
+	source = https://github.com/ryanoasis/nerd-fonts/raw/v2.1.0/LICENSE
+	sha512sums = effc1a81670c37b07f17f1c756a480091c777f6074b59cd6eefd09c8d5210b529de3c41e9cedf4992aacd9fe5bb3a5b331411bfe5b2b6f0eb8680a8e852247c2
+	sha512sums = 95712651fb58ad5f5ee1b796b1891e5cb6c62532699c08d3cd9255df46c10336faa170b4ec5a920be44d2cba68ab7726907c800e4a9b0060483437569cfe6fd3
 
 pkgname = nerd-fonts-jetbrains-mono
diff --git a/PKGBUILD b/PKGBUILD
index 96a193c..2c5dfd5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,14 +8,20 @@ arch=('any')
 url="https://www.nerdfonts.com"
 license=('MIT')
 makedepends=('fontconfig')
-conflicts=('nerd-fonts')
+provides=(${pkgname})
+conflicts=(${pkgname})
+replaces=(${pkgname})
 install="${pkgname}.install"
 source=("${_name}-${pkgver}.zip::https://github.com/ryanoasis/nerd-fonts/releases/download/v${pkgver}/${_name}.zip"
+        "https://github.com/ryanoasis/nerd-fonts/raw/v$pkgver/LICENSE"
 )
-sha256sums=('842013fa44b6896d4eb91635a81ef75244d78d7f61ff866c9dfd3315a67788cd')
+sha512sums=('effc1a81670c37b07f17f1c756a480091c777f6074b59cd6eefd09c8d5210b529de3c41e9cedf4992aacd9fe5bb3a5b331411bfe5b2b6f0eb8680a8e852247c2'
+            '95712651fb58ad5f5ee1b796b1891e5cb6c62532699c08d3cd9255df46c10336faa170b4ec5a920be44d2cba68ab7726907c800e4a9b0060483437569cfe6fd3'
+  )
+
 
 package() {
-	install -dm755 "${pkgdir}/usr/share/fonts/TTF"
-	find . -iname "*.ttf" -not -iname "*Windows Compatible.ttf" \
-		-execdir install -m644 {} "${pkgdir}/usr/share/fonts/TTF/{}" \;
+        find . -iname "*.otf" -not -iname "*Windows Compatible.otf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/OTF/{}" \;
+        find . -iname "*.ttf" -not -iname "*Windows Compatible.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
+        install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }