summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 858f3fa4016f2624c2758365df81a6baa564313d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pkgname=purple-hangouts-hg
srcname=purple-hangouts
pkgdesc='A Pidgin plugin to support the proprietary protocol used by Google for the Hangouts service.'
url='https://bitbucket.org/EionRobb/purple-hangouts'
arch=('i686' 'x86_64' 'armv6h')
pkgver=r357.4ce9b3338381
pkgrel=1
license=('GPLv3+')
depends=('libpurple' 'glib2' 'json-glib')
makedepends=('mercurial')
source=('purple-hangouts::hg+https://bitbucket.org/EionRobb/purple-hangouts')
md5sums=('SKIP')

pkgver() {
	cd $srcdir/$srcname
	printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
	cd $srcdir/$srcname
	make
}

package() {
	cd $srcdir/$srcname
	destdir=$pkgdir$(pkg-config --variable plugindir purple)
	install -Dm755 -t $destdir libhangouts.so

	icondir=$pkgdir/usr/share/pixmaps/pidgin/protocols
	echo $icondir

	for size in 16 22 24 48; do
		install -TDm644 $srcdir/$srcname/hangouts$size.png $icondir/$size/hangouts.png
	done
}