aboutsummaryrefslogtreecommitdiffstats
path: root/testing/belr/APKBUILD
blob: 606992aeded8c9b662e63efdce430f475f2f6d18 (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="belr"
pkgver="0.1.3"
_pkgver=${pkgver}-0
pkgrel=0
pkgdesc="ABNF Parser"
url="https://www.linphone.org"
arch="all"
license="GPL-3.0-or-later"
options="!check" # not test available
makedepends="cmake bctoolbox-dev eudev-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/Belr
	mv "$pkgdir"/usr/share/Belr/cmake/* "$subpkgdir"/usr/lib/cmake/Belr
	# Remove empty dirs
	rmdir "$pkgdir"/usr/share/Belr/cmake
	rmdir "$pkgdir"/usr/share/Belr
	rmdir "$pkgdir"/usr/share
}

sha512sums="9ce7a3d1c4de8241b6a6ba10d53483070940e4652577dd6afc63cbf850bd3ab14ff8aba6702a903eba6098cbfbd9be5e57e9690ca45fe2d50ecebf3bccf86e16  belr-0.1.3.tar.gz"