updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / pino3-hg / PKGBUILD
blob495d0943f7d11b18723ac2f07d84f3c323714d67
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: nofrak <nofrak at polattack.com>
7 pkgname=pino3-hg
8 pkgver=40
9 pkgrel=2
10 pkgdesc="A simple and fast client for Twitter and Identi.ca. Experimental build"
11 arch=('i686' 'x86_64')
12 url="http://pino-app.appspot.com/"
13 license=('LGPL3')
14 depends=('libgee>=0.5.0' 'libnotify' 'libwebkit>=1.0' 
15 'libunique>=1.0' 'vala-012' 'gtkspell>=2.0' 'rest')
16 optdepends=('libindicate: indicator support')
17 makedepends=('mercurial' 'cmake')
18 provides=('pino')
19 conflicts=('pino')
20 _hgroot=http://bitbucket.org/troorl
21 _hgrepo=pino3
23 build() {
24   cd $srcdir
25   if [ -d ${_hgrepo} ]; then
26     cd ${_hgrepo}
27     hg pull -u
28   else
29     hg clone "$_hgroot/$_hgrepo" || return 1
30     cd ${_hgrepo}
31   fi
32   if [ -d "build" ]; then
33     rm -r build
34   fi
35   sed -i 's/NAMES valac/NAMES valac-0.12/' cmake/FindVala.cmake
36   mkdir build
37   cd build
38   cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DUBUNTU_ICONS=OFF -DENABLE_DEBUG=OFF && make
41 package() {
42   cd "$srcdir/$_hgrepo/build"
43   make DESTDIR="$pkgdir/" install
46 # vim:set ts=2 sw=2 et: