summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryochananmarqos2020-02-02 09:35:17 -0700
committeryochananmarqos2020-02-02 09:35:17 -0700
commit92dc89f41ce3a91075b9556452520f027ae6313a (patch)
treecae28672557c67c66b6e3683fff4b6b41174578e
downloadaur-92dc89f41ce3a91075b9556452520f027ae6313a.tar.gz
initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD25
-rw-r--r--nerd-fonts-ibm-plex-mono.install15
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cb0c6c351e8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = nerd-fonts-ibm-plex-mono
+ pkgdesc = A Nerd Font patched version of IBM Plex™ Mono
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://www.nerdfonts.com
+ install = nerd-fonts-ibm-plex-mono.install
+ arch = any
+ license = MIT
+ makedepends = fontconfig
+ makedepends = xorg-mkfontscale
+ makedepends = xorg-mkfontdir
+ depends = fontconfig
+ depends = xorg-font-utils
+ conflicts = nerd-fonts
+ conflicts = nerd-fonts-complete
+ source = IBMPlexMono-2.1.0.zip::https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/IBMPlexMono.zip
+ source = https://raw.githubusercontent.com/ryanoasis/nerd-fonts/2.1.0/LICENSE
+ sha256sums = 4fd7d9fd21cfcb7808548617628e3f2044e9eaa5871261767472e739ed9d6e76
+ sha256sums = d2a29823384e9194a87936ccad495c764c2ef733b29bfa6f72a1d65803ce02e5
+
+pkgname = nerd-fonts-ibm-plex-mono
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..841e6ab5195
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
+pkgname=nerd-fonts-ibm-plex-mono
+_name=IBMPlexMono
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="A Nerd Font patched version of IBM Plex™ Mono"
+arch=('any')
+url="https://www.nerdfonts.com"
+license=('MIT')
+depends=('fontconfig' 'xorg-font-utils')
+makedepends=('fontconfig' 'xorg-mkfontscale' 'xorg-mkfontdir')
+conflicts=('nerd-fonts' 'nerd-fonts-complete')
+install="$pkgname.install"
+source=("$_name-$pkgver.zip::https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/$_name.zip"
+ "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/$pkgver/LICENSE")
+sha256sums=('4fd7d9fd21cfcb7808548617628e3f2044e9eaa5871261767472e739ed9d6e76'
+ 'd2a29823384e9194a87936ccad495c764c2ef733b29bfa6f72a1d65803ce02e5')
+
+package() {
+ install -dm755 "$pkgdir/usr/share/fonts/TTF"
+ find . -iname "*.ttf" -not -iname "*Windows Compatible.ttf" \
+ -execdir install -m644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
+
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/nerd-fonts-ibm-plex-mono.install b/nerd-fonts-ibm-plex-mono.install
new file mode 100644
index 00000000000..94f32d5d0d2
--- /dev/null
+++ b/nerd-fonts-ibm-plex-mono.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
+}