summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d54321d958c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
+
+pkgname=sqlite3pp-git
+pkgver=r43.fc0ca86
+pkgrel=1
+pkgdesc="C++ wrapper of SQLite3 API"
+arch=('i686' 'x86_64')
+url="https://github.com/iwongu/sqlite3pp"
+depends=(boost sqlite3)
+source=("git+$url")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "sqlite3pp"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "sqlite3pp/sqlite3pp/src"
+ cxx='c++ -std=c++11 -fPIC -shared'
+ ${cxx} -o libsqlite3pp.so sqlite3pp.cpp
+ ${cxx} -o libsqlite3ppext.so sqlite3ppext.cpp
+}
+
+package() {
+ cd "sqlite3pp/sqlite3pp/src"
+
+ # Headers
+ install -d "$pkgdir/usr/include/"
+ install -Dm644 *.h "$pkgdir/usr/include/"
+
+ # Shared objects
+ install -d "$pkgdir/usr/lib/"
+ install -Dm644 *.so "$pkgdir/usr/lib/"
+}