updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / myqq3-svn / PKGBUILD
blobb179fedd659f5e39fe835c3023371dd6ffaddeb2
1 pkgname=myqq3-svn
2 pkgver=13
3 pkgrel=1
4 arch=('i686' 'x86_64')
5 url="http://code.google.com/p/myqq3/"
6 pkgdesc="A portable open source qq CLI clien"
7 license=('GPLv3')
8 makedepends=('glibc')
10 _svntrunk=http://myqq3.googlecode.com/svn/trunk/
11 _svnmod=myqq3
13 build() {
14         cd $srcdir/
15         msg "Getting source..."
16         if [ -d $_svnmod/.svn ]; then
17                 (cd $_svnmod && svn --config-dir ../ up -r $pkgver && cd ..)
18         else
19                 svn --config-dir ./ co $_svntrunk  -r $pkgver $_svnmod
20         fi
22         msg "SVN checkout done or server timeout"
24         rm -rf $_svnmod-build
25         cp -r $_svnmod $_svnmod-build
27         msg "Starting make..."
28         cd $_svnmod-build
29         make -C src -flinux.mak CC="${CHOST}-gcc" \
30         CFLAGS="${CFLAGS} -c -Wall" LDFLAGS="${LDFLAGS} -lpthread" \
31         LD="${CHOST}-gcc"
34 package(){
35         cd $_svnmod-build
36 #       make DESTDIR="$pkgdir" install
37         mkdir -p $pkgdir/usr/bin
38         cp myqq $pkgdir/usr/bin