Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.1 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. pkgname=pidgin-smileys-facebook
  3. pkgver=1.0
  4. pkgrel=1
  5. arch=('i686' 'x86_64')
  6. pkgdesc="Facebook smileys for Pidgin"
  7. url="http://www.pidginthemes.com/"
  8. license=('GPL')
  9. depends=('pidgin')
  10. source=(
  11. '162631-Pidgin-Facebook-Smileys-1.0.tar.gz'
  12. 'themefile.patch'
  13. )
  14. md5sums=('2bc0f072bb33ccf8c8d8e80a696426a0'
  15. '432b4358b2658b38922a400f2b3cb5bd')
  16. srcloc=.${srcdir}/${pkgname}-${pkgver}
  17. prepare() {
  18. mkdir -p ${srcloc}
  19. find ${srcdir}/Facebook/ -maxdepth 1 -type f -exec mv -n {} ${srcloc}/ \;
  20. rm -R ${srcdir}/Facebook
  21. cd ${srcloc}
  22. #Rename these files
  23. mv puppy-facebook-emoticon-for-comments-status-and-chat.png puppy.png
  24. mv skull-emoticon-for-facebook-status-comments-chat.png skull.png
  25. mv sun+emoticon+for+facebook+comments.png sun.png
  26. mv kiss+emoticon.png kiss2.png
  27. mv thumb-up-facebook-emoticon-like-symbol.png thumbup.png
  28. mv umbrella-symbol-for-facebook-comments.png umbrella.png
  29. mv two-hands-reaching-up.png twohands.png
  30. mv vs-emoticon-versus.png versus.png
  31. mv yellow-heart-emoticon-for-fb-comments.png yellowheart.png
  32. mv big-smile-with-closed-eyes.png smileclosedeyes.png
  33. mv boy-and-girl-holding-hands.png boygirlhands.png
  34. mv disappointed-emoticon-for-facebook-chat-status-and-comments.png disappointed.png
  35. mv man-and-woman-holding-hands.png manwomanhands.png
  36. mv emoticon-of-heart-stabbed-with-an-arrow.png heartstabbed.png
  37. #Strip file names
  38. for filename in *.png; do
  39. newname=`echo $filename | sed \
  40. -e 's/-//g' \
  41. -e 's/+//g' \
  42. -e 's/for//g' \
  43. -e 's/fb//g' \
  44. -e 's/emoticon//g' \
  45. -e 's/symbol//g' \
  46. -e 's/icon//g' \
  47. -e 's/pointing//g' \
  48. -e 's/emoji//g' \
  49. -e 's/forstatus//g' \
  50. -e 's/mark//g' \
  51. -e 's/smiley//g' \
  52. -e 's/comments//g' \
  53. -e 's/facebook//g' \
  54. -e 's/\([A-Z]\)/\L\1/g'`
  55. if [ $filename = $newname ]; then
  56. true
  57. else
  58. mv $filename $newname
  59. fi
  60. done
  61. patch -Np1 -i "${srcdir}/themefile.patch"
  62. }
  63. package() {
  64. mkdir -p ${pkgdir}/usr/share/pixmaps/pidgin/emotes/facebook-smileys
  65. cp ${srcdir}/${pkgname}-${pkgver}/* ${pkgdir}/usr/share/pixmaps/pidgin/emotes/facebook-smileys/
  66. }