summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Bourgier2018-07-18 00:48:29 +0200
committerMickaël2018-07-18 01:06:35 +0200
commit5ef577f580674e61f5e48d6a6c9e09fbe91f41fb (patch)
treef605811545ab851145726f801c34e3b8bbd6fd40
downloadaur-5ef577f580674e61f5e48d6a6c9e09fbe91f41fb.tar.gz
First commit, version 2.0.0
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD23
-rw-r--r--nerd-fonts-hack.install15
4 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8cfb76f73ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = nerd-fonts-hack
+ pkgdesc = Patched font Hack from nerd-fonts library
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/ryanoasis/nerd-fonts
+ install = nerd-fonts-hack.install
+ arch = any
+ license = MIT
+ makedepends = fontconfig
+ makedepends = xorg-mkfontscale
+ makedepends = xorg-mkfontdir
+ source = https://github.com/ryanoasis/nerd-fonts/releases/download/v2.0.0/Hack.zip
+ source = https://raw.githubusercontent.com/ryanoasis/nerd-fonts/2.0.0/LICENSE
+ sha256sums = d1147483fd0310fa6bfce6799f47654e3f435010fdc709877b15a23f090ed41c
+ sha256sums = d2a29823384e9194a87936ccad495c764c2ef733b29bfa6f72a1d65803ce02e5
+
+pkgname = nerd-fonts-hack
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..fbbe3963606
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!nerd-fonts-hack.install
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c27132720d8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: cha.pa
+
+pkgname=nerd-fonts-hack
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Patched font Hack from nerd-fonts library"
+arch=("any")
+url="https://github.com/ryanoasis/nerd-fonts"
+license=("MIT")
+makedepends=("fontconfig" "xorg-mkfontscale" "xorg-mkfontdir")
+install=$pkgname.install
+source=("https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/Hack.zip"
+ "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/$pkgver/LICENSE")
+sha256sums=("d1147483fd0310fa6bfce6799f47654e3f435010fdc709877b15a23f090ed41c"
+ "d2a29823384e9194a87936ccad495c764c2ef733b29bfa6f72a1d65803ce02e5")
+
+package() {
+ install -d "${pkgdir}/usr/share/fonts/TTF"
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ rm "${srcdir}/"*"Windows Compatible.ttf"
+ install -Dm644 "${srcdir}/"*.ttf "${pkgdir}/usr/share/fonts/TTF"
+ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
+}
diff --git a/nerd-fonts-hack.install b/nerd-fonts-hack.install
new file mode 100644
index 00000000000..f26fc68b9c6
--- /dev/null
+++ b/nerd-fonts-hack.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -s
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}