aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libpurple-lurch/APKBUILD
blob: 9ca8d106740f698fe603bbb260b31a02086aca3c (plain) (blame)
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
# Contributor: Marian <marian.buschsieweke@ovgu.de>
# Maintainer: Marian <marian.buschsieweke@ovgu.de>
pkgname=libpurple-lurch
pkgver=0.6.7
pkgrel=0
pkgdesc="OMEMO (double ratchet encryption) support for libpurple"
url="https://github.com/gkdr/lurch"
arch="all"
license="GPL"
depends="libpurple libpurple-xmpp"
makedepends="glib-dev pidgin-dev libxml2-dev mxml-dev sqlite-dev libgcrypt-dev cmake bsd-compat-headers"
subpackages=""
_axcver=0.3.1
_libomemover=0.6.2
_libsignalver=2.3.1
source="${pkgname}-${pkgver}.tar.gz::https://github.com/gkdr/lurch/archive/v${pkgver}.tar.gz
	axc-${_axcver}.tar.gz::https://github.com/gkdr/axc/archive/v${_axcver}.tar.gz
	libomemo-${_libomemover}.tar.gz::https://github.com/gkdr/libomemo/archive/v${_libomemover}.tar.gz
	libsignal-protocol-c-${_libsignalver}.tar.gz::https://github.com/WhisperSystems/libsignal-protocol-c/archive/v${_libsignalver}.tar.gz"
options="!check"
builddir="${srcdir}/lurch-${pkgver}"

prepare() {
	cd "$srcdir"
	rmdir lurch-${pkgver}/lib/libomemo lurch-${pkgver}/lib/axc axc-${_axcver}/lib/libsignal-protocol-c
	mv libsignal-protocol-c-${_libsignalver} axc-${_axcver}/lib/libsignal-protocol-c
	mv libomemo-${_libomemover} lurch-${pkgver}/lib/libomemo
	mv axc-${_axcver} lurch-${pkgver}/lib/axc
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="9590229e024db7dd00489844c637f6e50d02d40ac2002cc3c10d800c0dadbff517225e595b0ee10f5b01e4c88ec8ace9991f5f9f18ad238a252bf38ab80d737b  libpurple-lurch-0.6.7.tar.gz
4f18bfb7447096af9933871f3b4e9ccf0779a19d34d7b15f2856ca2e3695b19308a3a6992ef63276b5c2af7e3a1ef83770c765604ccdb79e71cacb99b1d6188b  axc-0.3.1.tar.gz
bb97989951e2e7fb1e996d771c7f840a6d2f0506a7ca927f2db51e8583c82d8bed5480f5fb7eea173d937b46a95c5bb7ac5562201487c2ea85f4abe7d85bd7b5  libomemo-0.6.2.tar.gz
eca1f5be6bf238e116eb0c289951344d7a2ceb1ab849fa0a82dd08275444a33fea868a535b67c40a917108400a15ebbf80b2f78a0a93fa6bc2f89b6833c4a0f3  libsignal-protocol-c-2.3.1.tar.gz"