diff options
author | GoliathLabs | 2020-06-29 15:52:12 +0200 |
---|---|---|
committer | GoliathLabs | 2020-06-29 15:52:12 +0200 |
commit | 2b32e57517cea30fa6d3ec0bbe06a55d772d2ba8 (patch) | |
tree | 96f49ee9c125911bc2bbeae9b1ade580a9d806d7 /PKGBUILD | |
parent | 053e2798524ce8b8c94e6c4d077579ce3eefc70d (diff) | |
download | aur-2b32e57517cea30fa6d3ec0bbe06a55d772d2ba8.tar.gz |
Updated: PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 12 insertions, 17 deletions
@@ -1,32 +1,27 @@ # Maintainer: Edward Pacman <edward@edward-p.xyz> +_pkgname='consolas-with-yahei' pkgname=ttf-consolas-with-yahei-powerline-git -pkgver=r2.28cedd6 +pkgver=r14.b6e9163 pkgrel=1 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) conflicts=(ttf-consolas-with-yahei) -makedepends=(tar) -fontname='consolas-with-yahei' install=$pkgname.install +source=("git+https://github.com/crvdgc/Consolas-with-Yahei.git") +md5sums=('SKIP') pkgver() { - cd "$srcdir/$_pkgbase" - ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - ) + cd "$srcdir/Consolas-with-Yahei" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -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 + mkdir -p "$pkgdir"/usr/share/fonts/$_pkgname + chmod -R 755 "$pkgdir"/usr/ + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerd.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdb.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdi.ttf + cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdz.ttf } |