summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..474ddaeb940
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = postgrespp-git
+ pkgdesc = postgres++ is an asynchronous c++ libpq wrapper that aims to make libpq easier to use.
+ pkgver = 0.2.2.r4.g3488107
+ pkgrel = 1
+ url = https://github.com/tghosgor/postgrespp
+ arch = x86_64
+ license = BSD
+ makedepends = boost
+ makedepends = cmake
+ makedepends = git
+ makedepends = make
+ makedepends = postgresql-libs
+ depends = postgresql-libs
+ depends = boost
+ source = git+https://github.com/tghosgor/postgrespp.git
+ md5sums = SKIP
+
+pkgname = postgrespp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77b240cadf8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Tolga Hosgor <fasdfasdas@gmail.com>
+_pkgname=postgrespp
+pkgname="$_pkgname-git"
+pkgver=0.2.2.r4.g3488107
+pkgrel=1
+pkgdesc="postgres++ is an asynchronous c++ libpq wrapper that aims to make libpq easier to use."
+arch=(x86_64)
+url="https://github.com/tghosgor/postgrespp"
+license=('BSD')
+depends=(postgresql-libs boost)
+makedepends=(
+ boost
+ cmake
+ git
+ make
+ postgresql-libs
+)
+source=("git+https://github.com/tghosgor/postgrespp.git")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_pkgname"
+ mkdir -p build
+ cd build
+ cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=/usr ..
+ cmake --build .
+}
+
+package() {
+ cd "$_pkgname"
+ make -C build DESTDIR="$pkgdir/" install
+}