SHARE
TWEET

Untitled

a guest Jan 3rd, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=ttf-gujrati-fonts
  2. pkgver=0.0
  3. pkgrel=0
  4. pkgdesc="Gujrati Fonts"
  5. arch=(any)
  6. depends=(fontconfig xorg-font-utils)
  7. makedepends=(p7zip)
  8. url="http://gujarati.indiatyping.com"
  9.  
  10. source=(
  11. "http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Avantika.zip"
  12. "http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Gopika.zip"
  13. "http://gujarati.indiatyping.com/images/downloadfonts/Gujrati/Shree768.zip"
  14. )
  15.  
  16. noextract=("${source[@]##*/}")
  17.  
  18. md5sums=(
  19. "e9ab58721bae040e8209cec92d4ff49c"
  20. "1ac52849126172438a7557413f34944a"
  21. "8679f696ad92ca4358a5c4c0c26a6a95"
  22. )
  23.  
  24.  
  25. package() {
  26.   install -d "$pkgdir/usr/share/fonts/TTF"
  27.   install -m644 "$srcdir/Avantika.ttf" "$pkgdir/usr/share/fonts/TTF/"
  28.   install -m644 "$srcdir/Gopika.ttf" "$pkgdir/usr/share/fonts/TTF/"
  29.   install -m644 "$srcdir/Shree768.ttf" "$pkgdir/usr/share/fonts/TTF/"
  30.  
  31. }
  32.  
  33. prepare() {
  34.     cd "$srcdir"
  35.     7z e -y Avantika.zip
  36.     7z e -y Gopika.zip
  37.     7z e -y Shree768.zip
  38. }
  39.  
  40. post_install() {
  41.   echo -n "Updating font cache... "
  42.   fc-cache >/dev/null -f
  43.   mkfontscale /usr/share/fonts/TTF
  44.   mkfontdir   /usr/share/fonts/TTF
  45.   echo done
  46. }
  47.  
  48. post_upgrade() {
  49.   post_install
  50. }
  51.  
  52. post_remove() {
  53.   post_install
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top