diff options
Diffstat (limited to 'unmaintained/asterisk-dongle/APKBUILD')
-rw-r--r-- | unmaintained/asterisk-dongle/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/unmaintained/asterisk-dongle/APKBUILD b/unmaintained/asterisk-dongle/APKBUILD new file mode 100644 index 0000000000..b03d26116f --- /dev/null +++ b/unmaintained/asterisk-dongle/APKBUILD @@ -0,0 +1,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" |