summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b9e70e11c433be90b31d2c74dbab897d8c3e1ee (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
# Maintainer: Javier Torres <jtorres@carto.com>
pkgname=carto-postgresql
pkgver=0.18.5.r1.795d92d
pkgrel=1
pkgdesc="PostgreSQL extension for CARTO"
arch=('x86_64')
url="https://github.com/CartoDB/cartodb-postgresql"
license=('BSD')
groups=()
depends=('postgresql')
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/CartoDB/cartodb-postgresql.git')
noextract=()
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/cartodb-postgresql"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	cd "$srcdir/cartodb-postgresql"
}

build() {
	cd "$srcdir/cartodb-postgresql"
  make all
}

package() {
	cd "$srcdir/cartodb-postgresql"
  DESTDIR=$pkgdir make install

  install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}