aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/asterisk-audio-konf/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-09-02 10:41:25 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-09-02 10:41:25 +0000
commit42bc8b8c4c7dbaf5be8b0426a7a7eae84eabb0bb (patch)
treeb0dfdb22b5d6043cc6f5ea4ced0671688a0f2d42 /unmaintained/asterisk-audio-konf/APKBUILD
parent0fc8d928974bd2a533f129eba8d8ba2cfebb1512 (diff)
downloadaports-42bc8b8c4c7dbaf5be8b0426a7a7eae84eabb0bb.tar.bz2
aports-42bc8b8c4c7dbaf5be8b0426a7a7eae84eabb0bb.tar.xz
main/asterisk-audio-konf: move to unmaintained (does not build)
Diffstat (limited to 'unmaintained/asterisk-audio-konf/APKBUILD')
-rw-r--r--unmaintained/asterisk-audio-konf/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/unmaintained/asterisk-audio-konf/APKBUILD b/unmaintained/asterisk-audio-konf/APKBUILD
new file mode 100644
index 0000000000..37f02fcba2
--- /dev/null
+++ b/unmaintained/asterisk-audio-konf/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=asterisk-audio-konf
+_basever=0
+_gitver=101026
+pkgver=${_basever}_git${_gitver}
+pkgrel=2
+pkgdesc="A fork of AppKonference focused entirely on audio conferencing"
+url="http://github.com/jthomerson/AsteriskAudioKonf/"
+arch=""
+license="GPL2"
+depends=""
+makedepends="asterisk-dev"
+install=""
+subpackages=""
+_snapfile="$pkgname-$pkgver.tar.bz2"
+source="http://dev.alpinelinux.org/~tteras/$_snapfile"
+
+_gitver=101026
+_giturl="git://github.com/jthomerson/AsteriskAudioKonf.git"
+
+_builddir="$srcdir"/$pkgname/konference
+snapshot() {
+ _gitver=$(date +%y%m%d)
+ pkgver=${_basever}_git$_gitver
+ _snapfile="$pkgname-$pkgver.tar.bz2"
+
+ if [ -d "$SRCDEST"/$pkgname ]; then
+ cd "$SRCDEST"/$pkgname
+ git pull --rebase || return 1
+ else
+ cd "$SRCDEST"
+ git clone $_giturl $pkgname
+ fi
+ cd "$SRCDEST"
+ tar -jcf $_snapfile $pkgname
+
+ pkgrel=0
+ sed -i -e "s/^_gitver=.*/_gitver=${_gitver}/" \
+ -e "s/^pkgrel=.*/pkgrel=$pkgrel/" \
+ "$startdir"/APKBUILD
+ checksum
+}
+
+prepare() {
+ cd "$_builddir"
+
+ # Enable Speex16 support
+ sed -e '/CPPFLAGS += -DAC_USE_SPEEX16/s/^\# *//' -i Makefile
+
+ #for i in "$srcdir"/*.patch; do
+ # patch -p1 -i "$i" || return 1
+ #done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_PREFIX="$pkgdir" install
+}
+
+md5sums="9f560cae3afc363282db60e0d69c6643 asterisk-audio-konf-0_git101026.tar.bz2"