summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Sánchez Molero2017-05-08 02:44:18 +0300
committerAlberto Sánchez Molero2017-05-08 02:44:18 +0300
commit9d13b6f79c37a017d9ad299cf773fdfdb312d2e0 (patch)
treeb309b3e16aaf9589006d705d26170c987e171978
downloadaur-9d13b6f79c37a017d9ad299cf773fdfdb312d2e0.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d13d019f0ac
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = libpqxx-git
+ pkgdesc = C++ client API for PostgreSQL
+ pkgver = 5.0.1.r1.80a9d538
+ pkgrel = 1
+ url = https://github.com/jtv/libpqxx
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = python2
+ depends = postgresql-libs>=9.1
+ provides = libpqxx
+ conflicts = libpqxx
+ source = git+https://github.com/jtv/libpqxx.git
+ md5sums = SKIP
+
+pkgname = libpqxx-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c98194f4818
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Alberto Sánchez Molero <alsamolero@gmail.com>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=libpqxx-git
+_gitname=libpqxx
+pkgver=5.0.1.r1.80a9d538
+pkgrel=1
+pkgdesc="C++ client API for PostgreSQL"
+arch=('i686' 'x86_64')
+license=('custom')
+url="https://github.com/jtv/libpqxx"
+depends=('postgresql-libs>=9.1')
+makedepends=('python2')
+provides=('libpqxx')
+conflicts=('libpqxx')
+source=("git+https://github.com/jtv/libpqxx.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "%s" "$(git describe --long --tag | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+ sed -i 's|python|python2|' tools/splitconfig
+ ./configure --prefix=/usr --enable-shared
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ make prefix="${pkgdir}/usr" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}