blob: 085766d1ba8cc9e11cb4a9bab269f1f68f88a966 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asterisk-audio-konf
_basever=0
_gitver=100607
pkgver=${_basever}_git${_gitver}
pkgrel=2
pkgdesc="A fork of AppKonference focused entirely on audio conferencing"
url="http://github.com/jthomerson/AsteriskAudioKonf/"
license="GPL"
depends=
makedepends="asterisk-dev"
install=
subpackages=
_snapfile="$pkgname-$pkgver.tar.bz2"
source="http://build.alpinelinux.org:8010/distfiles/$_snapfile
0001-add-n-flag-to-prevent-dynamic-create-of-conference.patch
0002-member-do-not-exit-with-error-if-join_conference-fai.patch
0003-member-ability-to-play-an-announcement-to-joiner.patch
"
_gitver=100607
_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"/..
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="8a716a2d1daa622f86a485804e403571 asterisk-audio-konf-0_git100607.tar.bz2
937afbb9fa2ce57615f09919e15ab2d3 0001-add-n-flag-to-prevent-dynamic-create-of-conference.patch
2d0d8bf20b2a22bd099f1461cfd1fe27 0002-member-do-not-exit-with-error-if-join_conference-fai.patch
0d07d5e69e6aa75bd916ce29569a8509 0003-member-ability-to-play-an-announcement-to-joiner.patch"
|