blob: e6cf0a990931478df2155fe9a9cf78702880d662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Suphal Bhattarai suphalbhattarai4@gmail.com
pkgname=ttf-nepali-font-git
pkgver=1.0.1
pkgrel=1
pkgdesc="Collection Of Pupular Nepali Fonts"
arch=(x86_64 i686)
url="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 "1.0.1.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
}
|