[aur-requests] [PRQ#10222] Merge Request for ttf-gujrati-fonts

notify at aur.archlinux.org notify at aur.archlinux.org
Wed Jan 3 09:08:55 UTC 2018


seenxu [1] filed a merge request for ttf-gujrati-fonts [2]:

pkgname=ttf-gujrati-fonts
pkgver=0.0
pkgrel=0
pkgdesc="Gujrati Fonts"
arch=(any)
depends=(fontconfig xorg-font-utils)
makedepends=(p7zip)
url="http://gujarati.indiatyping.com"

source=(
"http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Avantika.zip"
"http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Gopika.zip"
"http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Shree768.zip"
)

noextract=("${source[@]##*/}")

md5sums=(
"e9ab58721bae040e8209cec92d4ff49c"
"1ac52849126172438a7557413f34944a"
"8679f696ad92ca4358a5c4c0c26a6a95"
)


package() {
  install -d "$pkgdir/usr/share/fonts/TTF"
  install -m644 "$srcdir/Avantika.ttf" "$pkgdir/usr/share/fonts/TTF/"
  install -m644 "$srcdir/Gopika.ttf" "$pkgdir/usr/share/fonts/TTF/"
  install -m644 "$srcdir/Shree768.ttf" "$pkgdir/usr/share/fonts/TTF/"

}

prepare() {
    cd "$srcdir"
    7z e -y Avantika.zip
    7z e -y Gopika.zip
    7z e -y Shree768.zip
}

post_install() {
  echo -n "Updating font cache... "
  fc-cache >/dev/null -f
  mkfontscale /usr/share/fonts/TTF
  mkfontdir   /usr/share/fonts/TTF
  echo done
}

post_upgrade() {
  post_install
}

post_remove() {
  post_install
}

[1] https://aur.archlinux.org/account/seenxu/
[2] https://aur.archlinux.org/pkgbase/ttf-gujrati-fonts/


More information about the aur-requests mailing list