makedeb
Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
Click here to go back to the commit logs for nerd-fonts-fira-code-bin.
Hash: 2f5262f0940912a490ab765c908f7235f8bdce03
Message: Better packaging
diff --git a/.SRCINFO b/.SRCINFO
index 3bf3564..bea80b4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = nerd-fonts-fira-code-bin
pkgbase = nerd-fonts-fira-code-bin
pkgdesc = Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
-pkgrel = 1
+pkgrel = 2
pkgver = 3.0.1
url = https://nerdfonts.com/
arch = amd64
@@ -10,5 +10,5 @@ arch = i386
conflicts = nerd-fonts-fira-code
license = Unknown
provides = nerd-fonts-fira-code
-source = https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/FiraCode.tar.xz
-sha256sums = a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e
\ No newline at end of file
+source = nerd-fonts-fira-code-v3.0.1.tar.xz::https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/FiraCode.tar.xz
+sha256sums = a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e
diff --git a/PKGBUILD b/PKGBUILD
index 1e36e78..f0031cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# vim: set sw=2 expandtab:
pkgname=nerd-fonts-fira-code-bin
pkgver=3.0.1
-pkgrel=1
+pkgrel=2
pkgdesc='Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more'
arch=(amd64 i386)
depends=()
@@ -11,18 +11,18 @@ conflicts=(nerd-fonts-fira-code)
license=('Unknown')
url='https://nerdfonts.com/'
-source=("https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FiraCode.tar.xz")
+source=("nerd-fonts-fira-code-v$pkgver.tar.xz::https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FiraCode.tar.xz")
sha256sums=('a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e')
-build() {
- cd "$srcdir"
- tar -xf *.tar.xz
-}
-
package() {
cd "$srcdir"
+
install -d "$pkgdir/usr/share/fonts/TTF"
- install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/"
- install -d "$pkgdir/usr/share/licenses/$pkgname"
- install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
-}
\ No newline at end of file
+ find . -maxdepth 1 -type f -name '*.ttf' -exec install -m644 \{\} "$pkgdir/usr/share/fonts/TTF" \;
+
+ install -d "$pkgdir/usr/share/fonts/OTF"
+ find . -maxdepth 1 -type f -name '*.otf' -exec install -m644 \{\} "$pkgdir/usr/share/fonts/OTF" \;
+
+ install -d -m644 "$pkgdir/usr/share/licenses/$pkgname/"
+ find . -maxdepth 1 -type f \( -iname 'license' -o -iname 'license.*' \) -exec install -m644 \{\} "$pkgdir/usr/share/licenses/$pkgname/" \;
+}