summaryrefslogtreecommitdiff
path: root/main/spandsp/APKBUILD
blob: 7106721ca36ffc76a6158f7cff22548c97d8a1fb (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spandsp
pkgver=0.0.6
_ver=${pkgver/_/}
pkgrel=5
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="https://deb.debian.org/debian/pool/main/s/spandsp/spandsp_$pkgver+dfsg.orig.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver+dfsg

prepare() {
	default_prepare
	update_config_sub
}

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

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

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