blob: b03d26116ff07928c97c20218fafdbcc73aba0c3 (
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
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
SVNREV=27
pkgname=asterisk-dongle
pkgver=1.1.$SVNREV
pkgrel=3
pkgdesc="GSM modem dongle channel driver"
url="http://code.google.com/p/asterisk-chan-dongle/"
arch=""
license="GPL2"
depends="asterisk"
depends_dev=""
makedepends="$depends_dev asterisk-dev subversion automake autoconf"
install=""
subpackages=""
source="issue46.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
svn checkout http://asterisk-chan-dongle.googlecode.com/svn/trunk/@$REV "$_builddir"
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
aclocal && autoconf && automake -a
./configure || return 1
make
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/lib/asterisk/modules "$pkgdir"/etc/asterisk
install -m644 etc/dongle.conf "$pkgdir"/etc/asterisk/dongle.conf.sample
install -m755 chan_dongle.so "$pkgdir"/usr/lib/asterisk/modules
}
md5sums="73321cca36d8f25f8de687b5600e7b73 issue46.patch"
|