aboutsummaryrefslogtreecommitdiffstats
path: root/testing/belcard/APKBUILD
blob: f4f2f0d39b5e6d048891f34bcc332acc4a28f529 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="belcard"
pkgver="1.0.2"
_pkgver=${pkgver}-0
pkgrel=0
pkgdesc="C++ library to manipulate VCard standard format"
url="https://linphone.org"
arch="all"
license="GPL-3.0-or-later"
options="!check" # not test available
makedepends="cmake bctoolbox-dev belr-dev"
subpackages="$pkgname-dev"
source="https://www.linphone.org/releases/sources/${pkgname}/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_MODULE_PATH=/usr/lib/cmake \
		-DENABLE_STRICT=NO \
		-DENABLE_SHARED=YES \
		-DENABLE_STATIC=NO .
	make
}

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

dev()  {
	default_dev
	mkdir -p "$subpkgdir"/usr/lib/cmake/Belcard
	mv "$pkgdir"/usr/share/Belcard/cmake/* "$subpkgdir"/usr/lib/cmake/Belcard
	# Remove empty dirs
	rmdir "$pkgdir"/usr/share/Belcard/cmake
	rmdir "$pkgdir"/usr/share/Belcard
	rmdir "$pkgdir"/usr/share
}

sha512sums="6b116c1f6518b5db34f49c379b25f512e70bfa0848e6b9d5d39f3836cfe4053e75f41a0219f79b5fdfd489c03745fc87c44cb1eb76b59ae1db1b3cd75ccd102e  belcard-1.0.2.tar.gz"