aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-12 08:34:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-12 08:34:34 +0000
commitc244cd0ee2396e2e841386f0ccf6bfae404298a3 (patch)
treeaf7e8e1541b6432cca474a06858224553ba54b51 /main
parent3730991b1d1c34e4da7fccebe397b02c220733f9 (diff)
parent17a22befb16c244fb8ba2a7550a0fbf61d653beb (diff)
downloadaports-c244cd0ee2396e2e841386f0ccf6bfae404298a3.tar.bz2
aports-c244cd0ee2396e2e841386f0ccf6bfae404298a3.tar.xz
Merge remote branch 'clandmeter/master'
Diffstat (limited to 'main')
-rw-r--r--main/asterisk-addons/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/main/asterisk-addons/APKBUILD b/main/asterisk-addons/APKBUILD
new file mode 100644
index 0000000000..a872791d91
--- /dev/null
+++ b/main/asterisk-addons/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=asterisk-addons
+pkgver=1.6.2.1
+pkgrel=0
+pkgdesc="Asterisk addons"
+url="http://www.asterisk.org"
+license="GPL2"
+makedepends="mysql-dev asterisk-dev"
+install=
+subpackages="$pkgname-mysql $pkgname-mp3 $pkgname-ooh323 $pkgname-saycountpl"
+depends=$subpackages
+source="http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6.2.1.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ ./bootstrap.sh
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+
+ make -j1 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install
+ make -j1 DESTDIR="$pkgdir" samples
+ # we are not building the mobile module because aports does not have bluez so we delete mobile.conf
+ rm -rf "$pkgdir"/etc
+}
+
+_find_and_move() {
+ local pattern="$1"
+ cd "$pkgdir" || return 1
+ find -name "$pattern" -type f | while read f; do
+ local dest="$subpkgdir/${f%/*}"
+ mkdir -p "$dest"
+ mv "$f" "$dest"
+ done
+}
+
+mysql() {
+ _find_and_move '*mysql*'
+}
+
+mp3() {
+ _find_and_move '*mp3*'
+}
+
+ooh323() {
+ _find_and_move '*ooh323*'
+}
+
+saycountpl() {
+ _find_and_move '*saycountpl*'
+ mv "$pkgdir"/var "$subpkgdir"
+}
+
+md5sums="95e33f22f53d58ac95c54d2c8b8d9d76 asterisk-addons-1.6.2.1.tar.gz"