diff options
author | Takashi INOUE | 2017-02-25 14:30:35 +0900 |
---|---|---|
committer | Takashi INOUE | 2017-02-25 14:30:35 +0900 |
commit | 30162086431f72e72bff3b114c61b40715354347 (patch) | |
tree | 02ec65fc38b51b5ed88d0d8ad095513462aa3c0d | |
download | aur-nerd-fonts-mplus.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | nerd-fonts-mplus.install | 15 | ||||
-rw-r--r-- | nerd-fonts-mplus.links | 10 |
4 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f24446bcfad0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sat Feb 25 05:28:13 UTC 2017 +pkgbase = nerd-fonts-mplus + pkgdesc = Patched font Mplus from nerd-fonts library + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/ryanoasis/nerd-fonts + install = nerd-fonts-mplus.install + arch = any + license = MIT + depends = fontconfig + depends = xorg-font-utils + depends = wget + source = nerd-fonts-mplus.links + source = https://github.com/ryanoasis/nerd-fonts/raw/v1.0.0/LICENSE + sha256sums = 57d29f70ab4d841b5c4784b974099f91c9252c0b782b573b27e0e8abfa9443d6 + sha256sums = 25f0b18305451ab7353c534098d9daf4051fbedfac6d5ef9be5de42e007e1c3f + +pkgname = nerd-fonts-mplus + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..94a5a1fcc059 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Takashi INOUE <inoue at pitan dot org> +pkgname=nerd-fonts-mplus +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Patched font Mplus from nerd-fonts library" +arch=('any') +url='https://github.com/ryanoasis/nerd-fonts' +license=('MIT') +depends=('fontconfig' 'xorg-font-utils' 'wget') +install=$pkgname.install +source=("$pkgname.links" + "https://github.com/ryanoasis/nerd-fonts/raw/v1.0.0/LICENSE") +sha256sums=( + '57d29f70ab4d841b5c4784b974099f91c9252c0b782b573b27e0e8abfa9443d6' + '25f0b18305451ab7353c534098d9daf4051fbedfac6d5ef9be5de42e007e1c3f') + +prepare() { + # Just download font file (complete version) from github repo because the whole repo is too big + cd "${srcdir}" + echo "Downloading fonts ...." + wget -c --show-progress -i "${pkgname}.links" +} + +package() { + install -d ${pkgdir}/usr/share/fonts/TTF + install -d ${pkgdir}/usr/share/licenses/${pkgname} + install -Dm644 ${srcdir}/*.ttf ${pkgdir}/usr/share/fonts/TTF + install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname} +} diff --git a/nerd-fonts-mplus.install b/nerd-fonts-mplus.install new file mode 100644 index 000000000000..f26fc68b9c62 --- /dev/null +++ b/nerd-fonts-mplus.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 +} diff --git a/nerd-fonts-mplus.links b/nerd-fonts-mplus.links new file mode 100644 index 000000000000..7abf00e449df --- /dev/null +++ b/nerd-fonts-mplus.links @@ -0,0 +1,10 @@ +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Bold/complete/M+ 1m bold Nerd Font Complete Mono.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Bold/complete/M+ 1m bold Nerd Font Complete.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Light/complete/M+ 1m light Nerd Font Complete Mono.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Light/complete/M+ 1m light Nerd Font Complete.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Medium/complete/M+ 1m medium Nerd Font Complete Mono.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Medium/complete/M+ 1m medium Nerd Font Complete.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Regular/complete/M+ 1m regular Nerd Font Complete Mono.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Regular/complete/M+ 1m regular Nerd Font Complete.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Thin/complete/M+ 1m thin Nerd Font Complete Mono.ttf +https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v1.0.0/patched-fonts/MPlus/Thin/complete/M+ 1m thin Nerd Font Complete.ttf |