aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmesode/APKBUILD
blob: ccebfde9b3a2f4affc81903baf3f9a2491d4a55f (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
46
47
48
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=libmesode
pkgver=0.10.0
pkgrel=0
pkgdesc="Fork of libstrophe for use with Profanity XMPP Client"
url="https://github.com/profanity-im/libmesode"
arch="all"
license="GPL-3.0-only MIT"
makedepends="expat-dev doxygen openssl-dev
	automake autoconf libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/profanity-im/libmesode/archive/$pkgver.tar.gz
"

prepare() {
	default_prepare
	./bootstrap.sh
}

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

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/html/$pkgname
	mv docs/html/* "$subpkgdir"/usr/share/html/$pkgname/
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}
sha512sums="202298ceef82d4d1692680190ce6300a6e24bc8412d9b3691ea07d6314793a94dd0c24d6ac7c36305ad6b906bea119aed17f47ba81a813ec98b74fb53e767e3f  libmesode-0.10.0.tar.gz"