summaryrefslogtreecommitdiff
path: root/user/libotr/APKBUILD
blob: aa9f28059c8413e9f80ead6bfd2278860c48c547 (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
45
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libotr
pkgver=4.1.1
pkgrel=1
pkgdesc="Messaging library for secure, encrypted communications"
url="https://otr.cypherpunks.ca/"
arch="all"
license="LGPL-2.1-only"
depends=""
depends_dev="libgcrypt-dev libgpg-error-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://otr.cypherpunks.ca/libotr-$pkgver.tar.gz
	fix-test.patch
	fix-client.patch
	"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

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

sha512sums="c957206235b9f627542f23a645c822ea1b318d83fa655f41ed8d9a3c0dddf30b88f0ca82060026af155e48ecb13969dc9270831f20304669794151f666ae5cb0  libotr-4.1.1.tar.gz
dcd1e55619b2ef51f14257cddcceb5f1b850da42c2acb7547713256a377df60d30591d06522fe6982db8c261687f1f18640a1ffaaf1c701d9356bd97dab1d8c8  fix-test.patch
7f9521c37a91ac396908ce6e92acb962a5528055809b81754ff27c77c1dbc952bfce2d97c538ca30d6c7dab7a119394ca5367a572287c6cb03fa7ca7f6a9e854  fix-client.patch"