APKBUILD 1.26 KB
Newer Older
1 2
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
3
pkgname=ortp
4 5
pkgver=1.0.2
_pkgver=${pkgver}-0
6
pkgrel=1
7 8
pkgdesc="oRTP is a library implemeting Real-time Transport Protocol (RFC3550), licensed under LGPL"
url="http://www.linphone.org/technical-corner/ortp"
Natanael Copa's avatar
Natanael Copa committed
9
arch="all"
10
options="!check" #no test avail
11
license="LGPL-2.0-or-later VSL"
12
makedepends="cmake bctoolbox-dev"
13
subpackages="$pkgname-doc $pkgname-dev"
Francesco Colista's avatar
Francesco Colista committed
14
source="$pkgname-$pkgver.tar.gz::https://www.linphone.org/releases/sources/ortp/$pkgname-$pkgver.tar.gz"
15
builddir="$srcdir/$pkgname-$_pkgver"
Natanael Copa's avatar
Natanael Copa committed
16 17

build() {
18 19 20 21 22 23 24
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_MODULE_PATH=/usr/lib/cmake \
		-DCMAKE_SKIP_INSTALL_RPATH=ON \
		-DENABLE_STATIC=NO \
		-DENABLE_SHARED=YES .
25
	make
Natanael Copa's avatar
Natanael Copa committed
26 27 28
}

package() {
29
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
30 31
}

32 33 34 35
dev()  {
	default_dev
	mkdir -p "$subpkgdir"/usr/lib/cmake/oRTP
	mv "$pkgdir"/usr/share/oRTP/cmake/* "$subpkgdir"/usr/lib/cmake/oRTP
36 37 38 39
	# Remove empty dirs
	rmdir "$pkgdir"/usr/share/oRTP/cmake
	rmdir "$pkgdir"/usr/share/oRTP
	rmdir "$pkgdir"/usr/share
40 41
}

42
sha512sums="653f0a607ff8a3d44a81ff73840ffe121140d04288965f18e8e9dc1d09c28eb86cf8efef3b2bbbdff0e76299a2cf87a28d8028a70bf1918616fb10c61d77f95e  ortp-1.0.2.tar.gz"