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.

129 lines
4.1 KiB

  1. # Maintainer: Fincer 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=("./162631-Pidgin-Facebook-Smileys-1.0.tar.gz"
  11. themefile.patch)
  12. md5sums=('2bc0f072bb33ccf8c8d8e80a696426a0'
  13. '432b4358b2658b38922a400f2b3cb5bd')
  14. #prepare() {
  15. # patch -Np1 -i "$srcdir/theme-description.patch"
  16. #}
  17. srcloc=.$srcdir/$pkgname-$pkgver
  18. prepare() {
  19. mkdir -p $srcloc
  20. find $srcdir/Facebook/ -maxdepth 1 -type f -exec mv -n {} $srcloc/ \;
  21. rm -R $srcdir/Facebook
  22. cd $srcloc
  23. #Rename these files
  24. mv puppy-facebook-emoticon-for-comments-status-and-chat.png puppy.png
  25. mv skull-emoticon-for-facebook-status-comments-chat.png skull.png
  26. mv sun+emoticon+for+facebook+comments.png sun.png
  27. mv kiss+emoticon.png kiss2.png
  28. mv thumb-up-facebook-emoticon-like-symbol.png thumbup.png
  29. mv umbrella-symbol-for-facebook-comments.png umbrella.png
  30. mv two-hands-reaching-up.png twohands.png
  31. mv vs-emoticon-versus.png versus.png
  32. mv yellow-heart-emoticon-for-fb-comments.png yellowheart.png
  33. mv big-smile-with-closed-eyes.png smileclosedeyes.png
  34. mv boy-and-girl-holding-hands.png boygirlhands.png
  35. mv disappointed-emoticon-for-facebook-chat-status-and-comments.png disappointed.png
  36. mv man-and-woman-holding-hands.png manwomanhands.png
  37. mv emoticon-of-heart-stabbed-with-an-arrow.png heartstabbed.png
  38. #Rename those also in theme file
  39. # sed -i 's/puppy-facebook-emoticon-for-comments-status-and-chat.png/puppy.png/g' theme
  40. # sed -i 's/skull-emoticon-for-facebook-status-comments-chat.png/skull.png/g' theme
  41. # sed -i 's/sun+emoticon+for+facebook+comments.png/sun.png/g' theme
  42. # sed -i 's/kiss+emoticon.png/kiss2.png/g' theme
  43. # sed -i 's/thumb-up-facebook-emoticon-like-symbol.png/thumbup.png/g' theme
  44. # sed -i 's/umbrella-symbol-for-facebook-comments.png/umbrella.png/g' theme
  45. # sed -i 's/two-hands-reaching-up.png/twohands.png/g' theme
  46. # sed -i 's/vs-emoticon-versus.png/versus.png/g' theme
  47. # sed -i 's/yellow-heart-emoticon-for-fb-comments.png/yellowheart.png/g' theme
  48. # sed -i 's/big-smile-with-closed-eyes.png/smileclosedeyes.png/g' theme
  49. # sed -i 's/boy-and-girl-holding-hands.png/boygirlhands.png/g' theme
  50. # sed -i 's/disappointed-emoticon-for-facebook-chat-status-and-comments.png/disappointed.png/g' theme
  51. # sed -i 's/man-and-woman-holding-hands.png/manwomanhands.png/g' theme
  52. # sed -i 's/emoticon-of-heart-stabbed-with-an-arrow.png/heartstabbed.png/g' theme
  53. #Strip file names
  54. for filename in *.png; do
  55. newname=`echo $filename | sed \
  56. -e 's/-//g' \
  57. -e 's/+//g' \
  58. -e 's/for//g' \
  59. -e 's/fb//g' \
  60. -e 's/emoticon//g' \
  61. -e 's/symbol//g' \
  62. -e 's/icon//g' \
  63. -e 's/pointing//g' \
  64. -e 's/emoji//g' \
  65. -e 's/forstatus//g' \
  66. -e 's/mark//g' \
  67. -e 's/smiley//g' \
  68. -e 's/comments//g' \
  69. -e 's/facebook//g' \
  70. -e 's/\([A-Z]\)/\L\1/g'`
  71. if [ $filename = $newname ]; then
  72. true
  73. else
  74. mv $filename $newname
  75. fi
  76. done
  77. #Rename those also in theme file as described in the patch file
  78. patch -Np1 -i "$srcdir/themefile.patch"
  79. # sed \
  80. # -e 's/-//g' \
  81. # -e 's/+//g' \
  82. # -e 's/for//g' \
  83. # -e 's/fb//g' \
  84. # -e 's/emoticon//g' \
  85. # -e 's/symbol//g' \
  86. # -e 's/icon//g' \
  87. # -e 's/pointing//g' \
  88. # -e 's/emoji//g' \
  89. # -e 's/forstatus//g' \
  90. # -e 's/mark//g' \
  91. # -e 's/smiley//g' \
  92. # -e 's/comments//g' \
  93. # -e 's/facebook//g' \
  94. # -e 's/\([A-Z]\)/\L\1/g' theme
  95. # sed -i 's/-for-facebook//g' theme
  96. # sed -i 's/-fb-emoticon//g' theme
  97. # sed -i 's/-facebook-emoticon//g' theme
  98. # sed -i 's/-emoticon//g' theme
  99. # sed -i 's/facebook-//g' theme
  100. # sed -i 's/-symbol//g' theme
  101. # sed -i 's/-icon//g' theme
  102. # sed -i 's/-pointing-//g' theme
  103. # sed -i 's/to-//g' theme
  104. # sed -i 's/+emoticon//g' theme
  105. # sed -i 's/-emoji//g' theme
  106. # sed -i 's/-sign//g' theme
  107. # sed -i 's/-for-status//g' theme
  108. # sed -i 's/-mark//g' theme
  109. # sed -i 's/--//g' theme
  110. # sed -i 's/-facebook//g' theme
  111. }
  112. package() {
  113. mkdir -p $pkgdir/usr/share/pixmaps/pidgin/emotes/facebook-smileys
  114. cp $srcdir/$pkgname-$pkgver/* $pkgdir/usr/share/pixmaps/pidgin/emotes/facebook-smileys/
  115. }