updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / juffed-svn / PKGBUILD
blob4d5f879c79011cb3dbe31349162bb9501384966f
1 pkgname=juffed-svn
2 pkgver=1140
3 pkgrel=1
4 pkgdesc="JuffEd is a free, cross-platform text editor.This package also includes plugins"
5 arch=('i686' 'x86_64')
6 url="http://sourceforge.net/projects/juffed"
7 license=('GPL2')
8 makedepends=('cmake' 'subversion')
9 depends=('qt' 'qscintilla')
10 provides=('juffed' 'juffed-plugins')
11 conflicts=('juffed' 'juffed-plugins')
13 _svntrunk="https://juffed.svn.sourceforge.net/svnroot/juffed/trunk/"
14 _svnmod="juffed"
16 build() {
17   cd $srcdir
18   if [ -d $_svnmod/.svn ]; then
19     (cd $_svnmod && svn up)
20   else
21     svn co $_svntrunk $_svnmod
22   fi
23   msg "SVN checkout done or server timeout"
24   msg "Starting make..."
25   if [[ -d ${srcdir}/build ]]; then
26     msg "Cleaning the previous build directory..."
27     rm -rf ${srcdir}/build
28   fi 
30   mkdir ${srcdir}/build
31   cd ${srcdir}/build
32   cmake $startdir/src/$_svnmod -DCMAKE_BUILD_TYPE=Release \
33                 -DCMAKE_INSTALL_PREFIX=/usr \
34                 -DBUILD_TODOLIST:BOOL="1"
35   make
38 package() {
39   cd ${srcdir}/build
40   make DESTDIR=${pkgdir} install