summaryrefslogtreecommitdiff
path: root/community/libcmis/APKBUILD
blob: 90485bfd7c77f3b93d567f3582a1813baff1579e (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libcmis
pkgver=0.5.1
pkgrel=1
pkgdesc="CMIS protocol client library"
url="https://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="https://github.com/tdf/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
	"

builddir="$srcdir"/libcmis-$pkgver

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="3270154f0f40d86fce849b161f914101  libcmis-0.5.1.tar.gz"
sha256sums="6acbdf22ecdbaba37728729b75bfc085ee5a4b49a6024757cfb86ccd3da27b0e  libcmis-0.5.1.tar.gz"
sha512sums="da1e66a7604f90644ad6ee691a5c06df36debec20db361e166ee64c9f8ce85be48623e38367ea2799107c10041ed5f8c3a8011a80d6eaca800c29084fb4fe0f6  libcmis-0.5.1.tar.gz"