updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / solr3-svn / PKGBUILD
blobc7ffed05b4b0ef582e58f24b34d935a9e97ea61f
1 # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
2 pkgname=solr3-svn
3 pkgver=1070243
4 pkgrel=1
5 pkgdesc="Future branch of solr search suite"
6 arch=('any')
7 url="http://lucene.apache.org/solr/"
8 license=('APACHE')
9 depends=('java-environment=6')
10 makedepends=('subversion'
11              'apache-ant')
12 source=('solr.rc' 'solr.conf')
13 md5sums=('159e094cc5c6408410c0a1fe06637360'
14          '1113e9ee08fb694dcd13eed0d4bce624')
16 _svntrunk=https://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/
17 _svnmod=solr
18 _DEST="${pkgdir}/usr/share/java/solr"
20 build() {
21   cd "$srcdir"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn export $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_svnmod-build"
33   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34   cd "$srcdir/$_svnmod-build"
36   #
37   # BUILD
38   #
39   cd solr/
40   ant example
43 package() {
44   cd "$srcdir/$_svnmod-build/solr"
45   mkdir -p $_DEST
46   cp -r example/* $_DEST
47   mkdir -p $pkgdir/etc/rc.d
48   mkdir -p $pkgdir/etc/conf.d
49   cp $srcdir/solr.rc $pkgdir/etc/rc.d/solr
50   cp $srcdir/solr.conf $pkgdir/etc/conf.d/solr