blob: 32b2aa37694b895954d2be9d64ad6b807c69fb5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Moritz Lipp <mlq@pwmt.org>
_pkgname=libaxolotl-c
pkgname=libaxolotl-c-git
pkgver=4c18674
pkgrel=1
pkgdesc="Axolotl C Library."
arch=('i686' 'x86_64')
url="https://github.com/WhisperSystems/libaxolotl-c"
license=('GPL')
depends=()
makedepends=('git' 'cmake')
checkdepends=('check' 'openssl')
conflicts=('libaxolotl-c')
provides=('libaxolotl-c')
source=("${_pkgname}::git+https://github.com/WhisperSystems/libaxolotl-c")
md5sums=('SKIP')
build() {
cd "$srcdir/$_pkgname"
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
..
# -DBUILD_TESTING=1 \
make
}
# check() {
# cd "$srcdir/$_pkgname/build"
# ctest
# }
package() {
cd "$srcdir/$_pkgname/build"
make DESTDIR="$pkgdir/" install
}
pkgver() {
cd "$_pkgname"
git describe --long --always | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
# vim:set ts=2 sw=2 et:
|