diff options
author | edward-p | 2018-03-05 13:35:22 +0800 |
---|---|---|
committer | edward-p | 2018-03-05 13:35:22 +0800 |
commit | 977717e42603fe2ce5c1ec22688891d5e3e80e41 (patch) | |
tree | be10ca7abe3ac08c0eb18e9471f3e5cc0a718dcd | |
download | aur-977717e42603fe2ce5c1ec22688891d5e3e80e41.tar.gz |
20180305
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | ttf-consolas-with-yahei-powerline-git.install | 11 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..346b8c75692a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = ttf-consolas-with-yahei-powerline-git + pkgdesc = Consolas-with-Yahei with powerline patched with nerd-fonts) + pkgver = 0.1.0 + pkgrel = 0 + url = https://github.com/crvdgc/Consolas-with-Yahei + install = ttf-consolas-with-yahei-powerline-git.install + arch = any + makedepends = tar + depends = fontconfig + depends = xorg-font-utils + +pkgname = ttf-consolas-with-yahei-powerline-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0c7ac0b6274d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: edward-p <micro.fedora@gmail.com> +pkgname=ttf-consolas-with-yahei-powerline-git +pkgver='0.1.0' +pkgrel=0 +pkgdesc="Consolas-with-Yahei with powerline patched with nerd-fonts)" +arch=(any) +url=https://github.com/crvdgc/Consolas-with-Yahei +depends=(fontconfig xorg-font-utils) +makedepends=(tar) +fontname='consolas-with-yahei' +install=$pkgname.install + +prepare(){ + git clone --depth=1 https://github.com/crvdgc/Consolas-with-Yahei.git +} +package() { + mkdir -p "$pkgdir"/usr/share/fonts/$fontname + chmod -R 755 "$pkgdir"/usr/ + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$fontname/consnerd.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$fontname/consnerdb.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$fontname/consnerdi.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$fontname/consnerdz.ttf +} diff --git a/ttf-consolas-with-yahei-powerline-git.install b/ttf-consolas-with-yahei-powerline-git.install new file mode 100644 index 000000000000..222aaa8e0a8f --- /dev/null +++ b/ttf-consolas-with-yahei-powerline-git.install @@ -0,0 +1,11 @@ +post_install() { + fc-cache -s +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |