aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcmis/APKBUILD
blob: 8dfe5a9504e9d3dea448a06097a36e2a5f1642c6 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libcmis
pkgver=0.5.0
pkgrel=4
pkgdesc="CMIS protocol client library"
url="http://sourceforge.net/projects/libcmis/"
arch="all"
license="MPL1.1+ GPLv2+ LGPLv2+"
depends=""
depends_dev="curl-dev libxml2-dev cppunit-dev boost-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc cmis-client:client"
source="http://downloads.sourceforge.net/project/libcmis/libcmis-$pkgver.tar.gz
	libcmis-0.5.0-gcc5.patch
	"

_builddir="$srcdir"/libcmis-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -vif || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--without-man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

client() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="5821b806a98e6c38370970e682ce76e8  libcmis-0.5.0.tar.gz
0f5ea344775175e535c74161f6232bf8  libcmis-0.5.0-gcc5.patch"
sha256sums="a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6  libcmis-0.5.0.tar.gz
c90c3c2a1511e6b8fa123241fc1bafcb91011b558ede175caf1095708769d87e  libcmis-0.5.0-gcc5.patch"
sha512sums="abfdf5654ef8763c9744587ba831acea93cc0ba7deaa8d807eed2e9077be848db0334430f7c2d6eecefeb90f520abbe81364a86790c0aa4363724816aec4793b  libcmis-0.5.0.tar.gz
27c9d7f251cc17669c6ce8e46f50555946997532fbe85ed92a73940d70d3bb6348807ab1a844749590ecb80b2743913e2a4a4ba82351f8061ba8f29495a59d1e  libcmis-0.5.0-gcc5.patch"