updated on Sun Jan 8 16:01:26 UTC 2012
[aur-mirror.git] / tinygettext-svn / PKGBUILD
blob07ffb10bae165d4d1434a701f11c45037c383d14
1 # Contributor: ahmad200512@yandex.ru
2 pkgname=tinygettext-svn
3 pkgver=200
4 pkgrel=1
5 pkgdesc="A simple gettext replacement that works directly on .po files"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/tinygettext/"
8 license=('GPL2')
9 makedepends=('subversion' 'cmake')
10 provides=('tinygettext')
11 conflicts=('tinygettext')
13 source=()
14 md5sums=()
16 _svntrunk=http://tinygettext.googlecode.com/svn/trunk/
17 _svnmod=tinygettext
19 build() {
20   cd $srcdir
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   cp -r $_svnmod $_svnmod-build
32   cd $_svnmod-build
34   cmake -D CMAKE_INSTALL_PREFIX=/usr .
35   make || return 1
36   make DESTDIR=${pkgdir} install || return 1