diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2015-09-11 12:13:13 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-15 10:27:21 +0200 |
commit | 6dce332e1a17dbc42e08439c30d12c300d4c6d0c (patch) | |
tree | 8200254c5e039cc8f77a5735885d6b7c39e0c19a /testing/chan-sccp | |
parent | 196c83e966b8c8166c0ec5b8c6e00277fc279433 (diff) | |
download | aports-6dce332e1a17dbc42e08439c30d12c300d4c6d0c.tar.bz2 aports-6dce332e1a17dbc42e08439c30d12c300d4c6d0c.tar.xz |
testing/chan-sccp: new aport http://chan-sccp-b.sourceforge.net Chan-SCCP channel driver for Asterisk
Diffstat (limited to 'testing/chan-sccp')
-rw-r--r-- | testing/chan-sccp/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/chan-sccp/APKBUILD b/testing/chan-sccp/APKBUILD new file mode 100644 index 0000000000..b92c2f78fe --- /dev/null +++ b/testing/chan-sccp/APKBUILD @@ -0,0 +1,46 @@ +pkgname=chan-sccp +pkgver=4.2 +pkgrel=0 +release=6168 +pkgdesc="Chan-SCCP channel driver for Asterisk" +url="http://chan-sccp-b.sourceforge.net/"; +arch="all" +license="GPL2" +depends="" +makedepends="asterisk-dev" +install="" +subpackages="${pkgname}-gen_sccpconf ${pkgname}-doc" +source="http://downloads.sourceforge.net/project/chan-sccp-b/V${pkgver%.*}/Chan_SCCP-v${pkgver}_STABLE_r${release}.tar.gz" + +_builddir="$srcdir"/Chan_SCCP-v${pkgver}_STABLE_r${release} + +build() { + cd "$_builddir" + ./configure --prefix=/usr + make || return 1 + cd contrib/gen_sccpconf + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +gen_sccpconf() { + pkgdesc="SCCP Config Generator" + cd "$_builddir"/contrib/gen_sccpconf + make DESTDIR="$subpkgdir" install || return 1 + rm -fr "$subpkgdir"/usr/share +} + +doc() { + arch="noarch" + cd "$_builddir"/conf + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname + cp -r . "$subpkgdir"/usr/share/doc/$pkgname + chmod -x "$subpkgdir"/usr/share/doc/$pkgname/*.sql +} +md5sums="ee32027f5741d3529c9a91dcd0bd1afd Chan_SCCP-v4.2_STABLE_r6168.tar.gz" +sha256sums="2ea36c96385dde68efc00d381e8f355643c2de3306bf68cd247e8a7b27c41d0b Chan_SCCP-v4.2_STABLE_r6168.tar.gz" +sha512sums="a74b3b07851f3865b1c4ecf706ae83dd185143f77e3fa8b84a3a3017b88571c303b59cdf31b43b14c16ac555de91ce43bdc74d9bdea25ad1e4c888f8e7bdfb14 Chan_SCCP-v4.2_STABLE_r6168.tar.gz" |