1 # Maintainer: cuihao <cuihao dot leo at gmail dot com>
3 pkgname=python-webqq-svn
7 pkgdesc="A WebQQ client based on python-webkit."
8 url="http://code.google.com/p/python-webqq/"
11 depends=('python-keybinder' 'python-notify' 'pywebkitgtk')
13 conflicts=('python-webqq', 'pywebqq')
15 source=('pywebqq.desktop')
16 md5sums=('72591fb99f6437f6ebfb223790d77ece')
18 _svnmod="python-webqq"
19 _svntrunk="http://python-webqq.googlecode.com/svn/trunk/python-webqq"
23 msg "Connecting to the SVN server...."
25 if [ -d "${_svnmod}/.svn" ]; then
26 cd "${_svnmod}" && svn up -r "${pkgver}"
29 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 msg "SVN checkout done or server timeout"
34 rm -rf "${_svnmod}-build"
35 cp -rf "${_svnmod}/src" "${_svnmod}-build"
38 # Arch默认使用python3,修改为使用python2执行
39 sed -i "1s/python/python2/" *.py
41 mkdir -p "${pkgdir}/usr/share/${_pkgname}"
42 cp ./* "${pkgdir}/usr/share/${_pkgname}"
44 mkdir "${pkgdir}/usr/bin"
45 ln -s "../share/${_pkgname}/pywebqq.py" "${pkgdir}/usr/bin/${_pkgname}"
48 mkdir "${pkgdir}/usr/share/applications/"
49 install -D -m644 ${srcdir}/pywebqq.desktop "${pkgdir}/usr/share/applications/"