de 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. unset MAKEFLAGS
  2. cat > font-7.md5 << "EOF"
  3. 23756dab809f9ec5011bb27fb2c3c7d6 font-util-1.3.1.tar.bz2
  4. 0f2d6546d514c5cc4ecf78a60657a5c1 encodings-1.0.4.tar.bz2
  5. 6d25f64796fef34b53b439c2e9efa562 font-alias-1.0.3.tar.bz2
  6. fcf24554c348df3c689b91596d7f9971 font-adobe-utopia-type1-1.0.4.tar.bz2
  7. e8ca58ea0d3726b94fe9f2c17344be60 font-bh-ttf-1.0.3.tar.bz2
  8. 53ed9a42388b7ebb689bdfc374f96a22 font-bh-type1-1.0.3.tar.bz2
  9. bfb2593d2102585f45daa960f43cb3c4 font-ibm-type1-1.0.3.tar.bz2
  10. 6306c808f7d7e7d660dfb3859f9091d2 font-misc-ethiopic-1.0.3.tar.bz2
  11. 3eeb3fb44690b477d510bbd8f86cf5aa font-xfree86-type1-1.0.4.tar.bz2
  12. EOF
  13. for paket in $(grep -v '^#' font-7.md5 |cut -d " " -f 3)
  14. do
  15. cd $DERLEME_KAYNAKDIZIN/
  16. #agdan ceker
  17. if [ ! -f $DERLEME_KAYNAKDIZIN/$paket ];then
  18. wget https://www.x.org/archive//individual/font/$paket
  19. fi
  20. grep $paket $SRC/font-7.md5 |md5sum -c -
  21. paketdizini=$(echo $paket | sed 's/.tar.bz2//')
  22. cd -
  23. tar -xf $DERLEME_KAYNAKDIZIN/$paket
  24. pushd $paketdizini
  25. case $paketdizini in
  26. luit-[0-9]* )
  27. line1="#ifdef _XOPEN_SOURCE"
  28. line2="# undef _XOPEN_SOURCE"
  29. line3="# define _XOPEN_SOURCE 600"
  30. line4="#endif"
  31. sed -i -e "s@#ifdef HAVE_CONFIG_H@$line1\n$line2\n$line3\n$line4\n\n&@" sys.c
  32. unset line1 line2 line3 line4
  33. ;;
  34. sessreg-* )
  35. sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i man/Makefile.in
  36. ;;
  37. esac
  38. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static
  39. make
  40. make DESTDIR=$PKG install
  41. popd
  42. done