updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / gtkqq-git / PKGBUILD
blobd4295cd9fa416b4018d044b7daf5235d1c291bb7
1 # Maintainer: cuihao <cuihao dot leo at gmail dot com>
3 pkgname=gtkqq-git
4 pkgver=20120101
5 pkgrel=1
6 pkgdesc="A QQ client based on gtk+ uses WebQQ protocol."
7 url="http://code.google.com/p/gtk-qq/"
8 license=('GPL3')
9 arch=('x86_64' 'i686')
10 depends=('gtk2' 'gdk-pixbuf2' 'bzip2' 'sqlite3' 'libnotify' 'gstreamer0.10')
11 makedepends=('git')
12 conflicts=('linuxqq')
14 _gitname="gtkqq"
15 _gitroot="git://github.com/kernelhcy/gtkqq.git"
17 build() {
18     cd $srcdir
19     msg "Connecting to the GIT server...."
20   
21     if [ -d $_gitname ]; then
22         cd $_gitname && git pull origin && cd ..
23         msg "The local files are updated."
24     else
25         git clone $_gitroot $_gitname
26     fi
27     
28     msg "GIT checkout done"
29     
30     rm -rf "$_gitname-build"
31     cp -rf "$_gitname" "$_gitname-build"
32     cd "$_gitname-build"
33     # test部分编译出来的东西貌似没啥用,割不割呢?
34     sed -i "s/test//" src/Makefile.am
35     # 禁用-Werror编译参数,会导致编译错误。要是编译错误就去掉。
36     #sed -i "s/-Werror//" src/test/Makefile.am
37     #sed -i "s/-Werror//" src/libqq/Makefile.am
38     #sed -i "s/-Werror//" src/gui/Makefile.am
39     
40     msg "Starting configure..."
41     ./autogen.sh
42     ./configure --prefix=/usr --disable-debug --enable-gst --disable-nm 
43     
44     msg "Starting make..."
45     make
46     make DESTDIR=${pkgdir}/ install
49 package() {
50     rm -f ${pkgdir}/usr/bin/qq