summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIblis Lin2016-03-26 13:54:12 +0800
committerIblis Lin2016-03-26 14:00:46 +0800
commit2f496b97caae6b8957c04211d51dff1fb8b78952 (patch)
treeb55c54eee78970c414a19049f95cf8b18b47396c /PKGBUILD
downloadaur-pillowtalk-git.tar.gz
Init commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8d0f0e1cf35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Iblis Lin <e196819@hotmail.com>
+
+pkgname=pillowtalk-git
+pkgver=0.3.r29.ga2323dc
+pkgrel=1
+pkgdesc="ANSI C library that talks to CouchDB using libcurl and yajl"
+arch=('any')
+url="https://github.com/mgmarino/pillowtalk"
+license=('MIT')
+depends=('curl' 'yajl')
+makedepends=('git' 'cmake')
+source=("$pkgname"::"git+https://github.com/mgmarino/pillowtalk.git")
+md5sums=('SKIP')
+options=('strip')
+
+pkgver() {
+ cd $srcdir/$pkgname
+
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $srcdir/$pkgname
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname
+
+ make DESTDIR="$pkgdir/" install
+}