blob: 9e55b5a50055d2fca46ad979dd5d818cbc5b4cd6 (
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
43
44
45
46
47
48
49
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=freetdm
# upstream does not tag a release
# the pkgver is the commit date
pkgver=0_git20210830
_commitid=8918ee1c3637cad0f9d41a402d26d3aa076fc202
pkgrel=0
pkgdesc="FreeTDM Endpoint Module "
url="https://github.com/freeswitch/freetdm"
arch="all"
license="BSD-3-Clause"
makedepends="libtool automake autoconf
freeswitch-dev gsm-dev libpri-dev libpcap-dev zlib-dev
python3-dev"
checkdepends="gzip"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/freeswitch/freetdm/archive/$_commitid.tar.gz
remove-werr.patch"
builddir="$srcdir"/$pkgname-$_commitid
prepare() {
default_prepare
sh bootstrap
}
build() {
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-libpri \
--with-modinstdir=/usr/lib/freeswitch
make
}
check() {
make check
}
package() {
mkdir -p "$pkgdir"/etc/freeswitch/autoload_configs
echo '<load module="mod_freetdm"/>' >> "$pkgdir"/etc/freeswitch/autoload_configs/modules.conf.xml
make DESTDIR="$pkgdir" install
}
sha512sums="
059dd7c78a2fa08d79f9e4b9301ac4a0c8ccad9c32359e7c25f4fe5bdff33f9d146be746968baeb03b2c8702c33dbb962fc192f7fd20c8f8d2b5dbb81f2ecb77 freetdm-0_git20210830.tar.gz
9bbf829370a374c9e09b1bfc02be158695213f4e62d116ee25960f5d05a5a52a8b7956e1def6795686e054f9d03aa270e345930a3401025450a23fb381ac4450 remove-werr.patch
"
|