summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b5baca937c7414c6759cac71e79afe3e2f611a8 (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
47
48
49
50
51
52
53
54
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Sean Anderson <seanga2@gmail.com>

pkgname=citus
pkgver=11.1.1
pkgrel=1
pkgdesc='Scalable PostgreSQL for multi-tenant and real-time workloads'
arch=('x86_64')
url='https://www.citusdata.com'
license=('AGPL3' 'MIT' 'BSD' 'custom:PostgreSQL')
depends=(
  'glibc'
  'postgresql'
  'lz4'
  'zstd'
  'curl'
  'openssl'
)
makedepends=(
  'git'
  'postgresql-libs'
  'llvm'
  'clang'
)
install='citus.install'
_commit='b7ae596fe8a4758f251cafc6ebb95ae9b971d202'
source=("$pkgname::git+https://github.com/citusdata/citus#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd "$pkgname"

  git describe --tags | sed 's/^v//'
}

build() {
  cd "$pkgname"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir" install

  # documentation
  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.{md,png}

  # license
  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" NOTICE
}