summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Lipp2016-11-20 18:04:34 +0100
committerMoritz Lipp2016-11-20 18:09:42 +0100
commit8873dbceb01d857725f95c514756f3bdcece9ccf (patch)
tree41e95dd33b7dec7ed3627d863fd27c42c4aec126
downloadaur-8873dbceb01d857725f95c514756f3bdcece9ccf.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cac14ac4ba9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Sun Nov 20 17:09:39 UTC 2016
+pkgbase = libsignal-protocol-c
+ pkgdesc = Signal Protocol C Library
+ pkgver = 2.3.0
+ pkgrel = 1
+ url = https://github.com/rizsotto/Bear
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ source = https://github.com/WhisperSystems/libsignal-protocol-c/archive/v2.3.0.tar.gz
+ md5sums = 987c0ae7cd054816016e6e286cd4fd7b
+
+pkgname = libsignal-protocol-c
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..22603a55b80
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Moritz Lipp <mlq@pwmt.org>
+
+pkgname=libsignal-protocol-c
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Signal Protocol C Library"
+arch=('i686' 'x86_64')
+url="https://github.com/rizsotto/Bear"
+license=('GPL3')
+makedepends=('cmake')
+testdepends=('check', 'openssl>=1.0')
+source=(https://github.com/WhisperSystems/$pkgname/archive/v$pkgver.tar.gz)
+md5sums=('987c0ae7cd054816016e6e286cd4fd7b')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p build && cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+ # -DBUILD_TESTING=1 \
+
+ make
+}
+
+# check() {
+# cd "$srcdir/$pkgname-$pkgver/tests"
+# make
+# cd ..
+# ctest
+# }
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir/" install
+}