|
|
- # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
-
- pkgname=pidgin-smileys-facebook
- pkgver=1.0
- pkgrel=1
- arch=('i686' 'x86_64')
- pkgdesc="Facebook smileys for Pidgin"
- url="http://www.pidginthemes.com/"
- license=('GPL')
- depends=('pidgin')
- source=(
- '162631-Pidgin-Facebook-Smileys-1.0.tar.gz'
- 'themefile.patch'
- )
- md5sums=('2bc0f072bb33ccf8c8d8e80a696426a0'
- '432b4358b2658b38922a400f2b3cb5bd')
-
- srcloc=.${srcdir}/${pkgname}-${pkgver}
-
- prepare() {
- mkdir -p ${srcloc}
- find ${srcdir}/Facebook/ -maxdepth 1 -type f -exec mv -n {} ${srcloc}/ \;
- rm -R ${srcdir}/Facebook
-
- cd ${srcloc}
-
- #Rename these files
- mv puppy-facebook-emoticon-for-comments-status-and-chat.png puppy.png
- mv skull-emoticon-for-facebook-status-comments-chat.png skull.png
- mv sun+emoticon+for+facebook+comments.png sun.png
- mv kiss+emoticon.png kiss2.png
- mv thumb-up-facebook-emoticon-like-symbol.png thumbup.png
- mv umbrella-symbol-for-facebook-comments.png umbrella.png
- mv two-hands-reaching-up.png twohands.png
- mv vs-emoticon-versus.png versus.png
- mv yellow-heart-emoticon-for-fb-comments.png yellowheart.png
- mv big-smile-with-closed-eyes.png smileclosedeyes.png
- mv boy-and-girl-holding-hands.png boygirlhands.png
- mv disappointed-emoticon-for-facebook-chat-status-and-comments.png disappointed.png
- mv man-and-woman-holding-hands.png manwomanhands.png
- mv emoticon-of-heart-stabbed-with-an-arrow.png heartstabbed.png
-
- #Strip file names
- for filename in *.png; do
- newname=`echo $filename | sed \
- -e 's/-//g' \
- -e 's/+//g' \
- -e 's/for//g' \
- -e 's/fb//g' \
- -e 's/emoticon//g' \
- -e 's/symbol//g' \
- -e 's/icon//g' \
- -e 's/pointing//g' \
- -e 's/emoji//g' \
- -e 's/forstatus//g' \
- -e 's/mark//g' \
- -e 's/smiley//g' \
- -e 's/comments//g' \
- -e 's/facebook//g' \
- -e 's/\([A-Z]\)/\L\1/g'`
-
- if [ $filename = $newname ]; then
- true
- else
- mv $filename $newname
- fi
- done
-
- patch -Np1 -i "${srcdir}/themefile.patch"
- }
-
- package() {
- mkdir -p ${pkgdir}/usr/share/pixmaps/pidgin/emotes/facebook-smileys
- cp ${srcdir}/${pkgname}-${pkgver}/* ${pkgdir}/usr/share/pixmaps/pidgin/emotes/facebook-smileys/
- }
|