summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4123e1ff6e917b7279b94bb9bc6accc7336e0f0 (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
# Contributor: tuftedocelot@fastmail.fm

pkgname=nifi
pkgver=1.8.0
pkgrel=1
pkgdesc='An easy to use, powerful, and reliable system to process and distribute data.'
arch=(x86_64)
url='https://nifi.apache.org/'
license=(Apache)
depends=('java-runtime>=8')
install=${pkgname}.install
source=(
  "http://mirrors.gigenet.com/apache/$pkgname/$pkgver/$pkgname-$pkgver-bin.tar.gz"
  'nifi.service'
  'nifi.install'
)
sha256sums=('11561e8d505e76af5060a8b039d7ba1ecfe966722e5b824b4d4eed60ea796071'
            'f4ee42958c0f2cd67bba472f96f99b6e8ad06b38222e8ec888c33c92b3f95ec2'
            '20888fc83333b81a90a227cfc6b1517b36b7312f5018bfdb5868caf4197c95a2')

package() {
	mkdir -p "$pkgdir/opt/nifi"
	mkdir -p "$pkgdir/usr/share/doc/$pkgname"
	cp -r "$srcdir/$pkgname-$pkgver/docs/." "$pkgdir/usr/share/doc/$pkgname/"
	cp -r "$srcdir/$pkgname-$pkgver/." "$pkgdir/opt/nifi/"
	chmod 0755 "$pkgdir/opt/nifi/bin/nifi.sh"
	chmod 0755 "$pkgdir/opt/nifi/bin/nifi-env.sh"
	sed -i "s/run.as=/run.as=nifi/g" "$pkgdir/opt/$pkgname/conf/bootstrap.conf"
	install -Dm 644 "nifi.service" "$pkgdir/usr/lib/systemd/system/nifi.service"
	install -Dm 644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm 644 "$srcdir/$pkgname-$pkgver/README" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}