aboutsummaryrefslogtreecommitdiffstats
path: root/main/spandsp/APKBUILD
blob: 7447f74bf34e590de14032cff7f297d5c9b84c7c (plain) (blame)
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
# Contributor: Carlo Landmeter
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=spandsp
pkgver=0.0.6
_ver=${pkgver/_/}
pkgrel=1
pkgdesc="SpanDSP is a library of DSP functions for telephony"
url="https://www.soft-switch.org/installing-spandsp.html"
arch="all"
license="LGPL-2.1-only"
makedepends="tiff-dev"
subpackages="$pkgname-dev"
source="http://deb.debian.org/debian/pool/main/s/spandsp/spandsp_$pkgver+dfsg.orig.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver+dfsg

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="f64765f849b38a20f1793b4792361e51b9c37d58701f72c46652f1512a3d15616ec8b5ad5833d68b6b7a6290bb3ae948ec22248cc3ff767cb8875a02ae0be8ef  spandsp_0.0.6+dfsg.orig.tar.xz"