summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Torres2017-02-03 18:13:47 +0100
committerJavier Torres2017-02-03 18:13:47 +0100
commite858be51d11e29825c61e5c5c0dc7ca4faf2cbc2 (patch)
treec88a0c0d4d67d80928faf88d49713e35710650e9
downloadaur-e858be51d11e29825c61e5c5c0dc7ca4faf2cbc2.tar.gz
First version
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8493c5d9e04
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Feb 3 17:13:41 UTC 2017
+pkgbase = carto-postgresql
+ pkgdesc = PostgreSQL extension for CARTO
+ pkgver = 0.18.5.r1.795d92d
+ pkgrel = 1
+ url = https://github.com/CartoDB/cartodb-postgresql
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ depends = postgresql
+ source = git+https://github.com/CartoDB/cartodb-postgresql.git
+ sha256sums = SKIP
+
+pkgname = carto-postgresql
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b9e70e11c4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}