APKBUILD 1.39 KB
Newer Older
1 2 3 4
# Contributor: 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asterisk-audio-konf
_basever=0
5
_gitver=101026
6
pkgver=${_basever}_git${_gitver}
7
pkgrel=0
8 9
pkgdesc="A fork of AppKonference focused entirely on audio conferencing"
url="http://github.com/jthomerson/AsteriskAudioKonf/"
10
arch="all"
11 12 13 14 15 16
license="GPL"
depends=
makedepends="asterisk-dev"
install=
subpackages=
_snapfile="$pkgname-$pkgver.tar.bz2"
17
source="http://dev.alpinelinux.org/~tteras/$_snapfile
18 19
	"

20
_gitver=101026
21 22 23 24 25 26 27 28 29
_giturl="git://github.com/jthomerson/AsteriskAudioKonf.git"


_builddir="$srcdir"/$pkgname/konference


snapshot() {
	_gitver=$(date +%y%m%d)
	pkgver=${_basever}_git$_gitver
30
	_snapfile="$pkgname-$pkgver.tar.bz2"
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

	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() {
50 51 52 53 54 55 56 57
	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
58 59 60 61 62 63 64 65 66 67 68 69
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_PREFIX="$pkgdir" install
}

70
md5sums="9f560cae3afc363282db60e0d69c6643  asterisk-audio-konf-0_git101026.tar.bz2"