diff options
author | Suphal | 2020-08-06 18:24:46 +0545 |
---|---|---|
committer | Suphal | 2020-08-06 18:24:46 +0545 |
commit | 760a57873fad79346ff2b6f0dfd4ded93d10fa0f (patch) | |
tree | 89691218b13b4b21dc1b2c4bdde0fb84e5e9e0cc /PKGBUILD | |
download | aur-760a57873fad79346ff2b6f0dfd4ded93d10fa0f.tar.gz |
A collection of popular Nepali fonts
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1332f51c94dd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Suphal Bhattarai suphalbhattarai4@gmail.com +pkgname=ttf-nepali-font-git +pkgver=r6.e645fa5 +pkgrel=1 +pkgdesc="Collection Of Pupular Nepali Fonts" +arch=(x86_64 i686) +url="git+https://github.com/SuphalBhattarai/nepali-fonts" +depends=(fontconfig) +makedepends=(git ) +provides=(ttf-nepali-font-git) +source=("git+https://github.com/SuphalBhattarai/nepali-fonts") +md5sums=('SKIP') + +pkgver() { + cd "nepali-fonts" + install -d "${pkgdir}/usr/share/fonts/TTF" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -d "${pkgdir}/usr/share/fonts/TTF" + install -m644 nepali-fonts/fonts/*.ttf "${pkgdir}/usr/share/fonts/TTF/" +} + +post_install() { + echo -n "Updating font cache... " + fc-cache >/dev/null -f + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo done +} |