From d81da6fd645ddb96b3cbb6c69ccb3dea9f324377 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
Date: Sat, 12 Oct 2013 12:21:32 +0000
Subject: [PATCH] add pg_view-git

---
 .SRCINFO | 13 +++++++++++++
 PKGBUILD | 27 +++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 .SRCINFO
 create mode 100644 PKGBUILD

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ed78eb3a17b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = pg_view-git
+	pkgdesc = postgreSQL Activity View Utility
+	pkgver = 20130825
+	pkgrel = 1
+	url = https://github.com/zalando/pg_view
+	arch = any
+	license = Apache
+	depends = python2-psycopg2
+	source = git+https://github.com/zalando/pg_view.git
+	sha256sums = SKIP
+
+pkgname = pg_view-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d3eed197978
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Thomas Weißschuh <thomas t-8ch de>
+
+pkgname='pg_view-git'
+pkgver=20130825
+pkgrel=1
+pkgdesc='postgreSQL Activity View Utility'
+url='https://github.com/zalando/pg_view'
+source=('git+https://github.com/zalando/pg_view.git')
+arch=('any')
+license=('Apache')
+depends=('python2-psycopg2')
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/pg_view/"
+  sed -i '1s/python$/python2/' pg_view.py
+}
+
+package() {
+  cd "${srcdir}/pg_view/"
+  # install -D "${pkgdir}/usr/bin"
+  install -D -m755 pg_view.py "${pkgdir}/usr/bin/pg_view"
+}
+
+pkgver() {
+  date '+%Y%m%d'
+}