updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pidgin-omegle / PKGBUILD
blob85e2ddb315c402b1845dfb995d97625ecc76c2af
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _v=r17
4 _p=omegle
5 pkgname=pidgin-$_p
6 pkgver=$_v
7 pkgrel=1
8 pkgdesc="A plugin to use the omegle.com service in Pidgin"
9 arch=(i686 x86_64)
10 url="http://code.google.com/p/pidgin-omegle/"
11 license=('GPL')
12 depends=('json-glib' 'pidgin')
13 source=("http://pidgin-omegle.googlecode.com/svn-history/$_v/trunk/libomegle.c"
14         "http://pidgin-omegle.googlecode.com/svn-history/$_v/trunk/libomegle.h"
15         "http://pidgin-omegle.googlecode.com/svn-history/$_v/trunk/om_connection.c"
16         "http://pidgin-omegle.googlecode.com/svn-history/$_v/trunk/om_connection.h"
17         "$_p-16.png"
18         "$_p-22.png"
19         "$_p-48.png"
20         "$_p.svg")
21 md5sums=('1467cce331515d1c062ce2253e7f8745'
22          '7c8b987f1159972d68af6b70e978b81b'
23          '3e5491b671c7a9963d388a6201cea475'
24          '44d9cba461358f1319f7304df748d562'
25          'a315958c69c37fea468cd540f8c04e04'
26          '2fdd7e3a5ab5e3d7a9a75d2d1a608fb2'
27          '6223cf15987fed7296fa3ef7c2b6b2c8'
28          'c68267eeb0c2e49132b1ca82ece25d63')
30 build() {
31   cd "$srcdir"
33   gcc -c -fPIC -o libomegle.o libomegle.c `pkg-config --cflags pidgin json-glib-1.0`
34   gcc -c -fPIC -o om_connection.o om_connection.c `pkg-config --cflags pidgin`
35   gcc -shared -Wl libomegle.o om_connection.o -o omegle.so `pkg-config --libs json-glib-1.0`
38 package() {
39   cd "$srcdir"
41   # module
42   install -Dm755 omegle.so "$pkgdir/usr/lib/purple-2/libomegle-1.so"
44   # protocol icons
45   for _s in 16 22 48; do
46     install -Dm644 ../$_p-$_s.png "$pkgdir/usr/share/pixmaps/pidgin/protocols/$_s/$_p.png"
47   done;
48   install -Dm644 ../$_p.svg "$pkgdir/usr/share/pixmaps/pidgin/protocols/scalable/$_p.svg"
51 # vim:set ts=2 sw=2 et: