summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb851910ead5cb9cecd7e87994511fd03de9f812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Christoph Bayer <chrbayer@criby.de>
# Contributor: Tom Richards <tom@tomrichards.net>
# Contributor: grimsock <lord.grimsock at gmail dot com>
# Contributor: David Danier <david.danier@team23.de>

pkgname=solr6
pkgver=6.6.6
pkgrel=1
pkgdesc="Popular, blazing fast open source enterprise search platform from the Apache Lucene project"
arch=('any')
license=('Apache')
url="http://lucene.apache.org/solr/"
depends=('java-runtime-headless>=8')
makedepends=('unzip')
conflicts=('solr')
source=("http://archive.apache.org/dist/lucene/solr/$pkgver/solr-$pkgver.tgz"{,.asc}
        "solr.service"
        "solr.sysusers")
backup=(opt/solr/server/etc/jetty{,-http,-https,-ssl}.xml
        opt/solr/server/etc/webdefault.xml
        opt/solr/server/solr/solr.xml
        opt/solr/server/solr/zoo.cfg)
install="solr.install"
options=(!strip)
validpgpkeys=('052C5B48A480B9CEA9E218A5F98C13CFA5A135D8'  # "Jim Ferenczi (CODE SIGNING KEY) <jimczi@apache.org>"
              '2085660D9C1FCCACC4A479A3BF160FF14992A24C'  # "Ishan Chattopadhyaya <ishan@apache.org>"
              'D84A760EFB229AC156D5082ECDDE30C37F3DE8DA')
sha256sums=('149ec1a7ee950867ab6257a1a96246df79ccda983983389dc639220f3447b6e8'
            'SKIP'
            'e4ca86de2ef9425913280deeeec42d6e8ff310b08ea55d9156193ceef3c847bd'
            'a336c1a16742b100b3d28fe49722366477bb805e262f36b83cc2fdd9e85d5bf9')
build() {
  cd "$srcdir/solr-$pkgver"/bin
  rm *.cmd
  rm install_solr_service.sh
  rm -rf init.d
}

package() {
  cd "$srcdir/solr-$pkgver"
  mkdir -p "$pkgdir"/opt/solr
  cp -R * "$pkgdir"/opt/solr
  chown -R 114:114 "$pkgdir"/opt/solr
  install -Dm644 "$srcdir/solr.service" "$pkgdir/usr/lib/systemd/system/solr.service"
  install -Dm644 "$srcdir/solr.sysusers" "$pkgdir/usr/lib/sysusers.d/solr.conf"
}