1 # Maintainer: cuihao <cuihao dot leo at gmail dot com>
6 pkgdesc="A QQ client based on gtk+ uses WebQQ protocol."
7 url="http://code.google.com/p/gtk-qq/"
10 depends=('gtk2' 'gdk-pixbuf2' 'bzip2' 'sqlite3' 'libnotify' 'gstreamer0.10')
15 _gitroot="git://github.com/kernelhcy/gtkqq.git"
19 msg "Connecting to the GIT server...."
21 if [ -d $_gitname ]; then
22 cd $_gitname && git pull origin && cd ..
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done"
30 rm -rf "$_gitname-build"
31 cp -rf "$_gitname" "$_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
40 msg "Starting configure..."
42 ./configure --prefix=/usr --disable-debug --enable-gst --disable-nm
44 msg "Starting make..."
46 make DESTDIR=${pkgdir}/ install
50 rm -f ${pkgdir}/usr/bin/qq