summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76c166d451b4a1a7f4b6fa2559fa9bf8e3f0237d (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
# Maintainer: vltr <rkuesters@gmail.com>
pkgname=citus-git
pkgver=10.1.devel.4660.r857beb36f
pkgrel=1
pkgdesc="Scalable PostgreSQL for multi-tenant and real-time workloads"
url="https://github.com/citusdata/citus"
arch=('any')
license=('AGPL-3.0')
depends=('postgresql')
makedepends=('postgresql-libs' git llvm)
install="${pkgname}.install"
source=("$pkgname::git+https://github.com/citusdata/citus")
sha1sums=('SKIP')

pkgver() {
  cd "$pkgname"
  #echo "$(git describe --long --tags | sed 's/\(^.*\)-.*.*/\1/;s/-/./g').r$(git log --pretty=format:'%h' -n 1)"
  echo "$(cat configure.in | grep AC_INIT | cut -d'[' -f3 | sed 's/\(])\)//g' | sed 's/devel/\.devel/g').$(git shortlog | grep -E '^[ ]+\w+' | wc -l).r$(git log --pretty=format:'%h' -n 1)"
}

build() {
	cd "$pkgname"
	./configure
	make
}

package() {
	cd "$pkgname"
	make DESTDIR=${pkgdir} install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}