updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / qtwitlib-svn / PKGBUILD
blob52de62a94c4e233740cce51f74ca52055f651096
1 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
3 pkgname=qtwitlib-svn
4 pkgver=67
5 pkgrel=1
6 pkgdesc="C++ Library for the twitter.com API"
7 arch=('i686' 'x86_64') 
8 url="http://code.google.com/p/twitlib/"
9 license=('GPL3')
10 conflicts=('qtwitlib')
11 provides=('qtwitlib')
12 depends=('qt>=4.4.0')
13 makedepends=('subversion')
14 source=()
15 md5sum=()
17 _svntrunk=http://twitlib.googlecode.com/svn/trunk/
18 _svnmod=$pkgname
20 build()
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up)
24   else
25     svn co $_svntrunk $_svnmod
26   fi
28   cd $_svnmod
30   qmake -unix PREFIX=/usr -o Makefile twitlib.pro || return 1
31   make \
32     CFLAGS="-pipe ${CFLAGS} -Wall -W -D_REENTRANT -fPIC \$(DEFINES)" \
33     CXXFLAGS="-pipe ${CXXFLAGS} -Wall -W -D_REENTRANT -fPIC \$(DEFINES)" || return 1
35   # Install the library and header files.
36   install -d -m 0755 ${pkgdir}/usr/{lib,include/qtwitlib} || return 1
37   install -m 0644 include/*.h ${pkgdir}/usr/include/qtwitlib || return 1
38   install -m 0755 release/libQTwitLib.so.1.0.0 ${pkgdir}/usr/lib || return 1
39   # Create symlinks.
40   (cd ${pkgdir}/usr/lib ; ln -s libQTwitLib.so.1.0.0 libQTwitLib.so.1.0)
41   (cd ${pkgdir}/usr/lib ; ln -s libQTwitLib.so.1.0.0 libQTwitLib.so.1)
42   (cd ${pkgdir}/usr/lib ; ln -s libQTwitLib.so.1.0.0 libQTwitLib.so)