aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opal/APKBUILD
blob: ff018007b8c28b6c9ec8b8fab72fe815017e18ee (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
# Contributor: Mika Havela
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=opal
pkgver=3.10.10
pkgrel=0
pkgdesc="Open Phone Abstraction Library"
url="http://www.opalvoip.org/"
arch="all"
license="MPLv1.0"
depends=""
depends_dev="openssl-dev ptlib-dev speex-dev"
makedepends="$depends_dev sdl-dev libtheora-dev"
install=""
subpackages="$pkgname-dev"
source="http://download.gnome.org/sources/opal/3.10/opal-$pkgver.tar.xz"

_builddir="$srcdir"/opal-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr/share/opal/make
	install -m644 "$_builddir"/opal_defs.mak \
		"$_builddir"/opal_inc.mak \
		"$subpkgdir"/usr/share/opal/make
}

md5sums="6efa1b4c5e0ad6460019b4c6df0898d7  opal-3.10.10.tar.xz"
sha256sums="f208985003461b2743575eccac13ad890b3e5baac35b68ddef17162460aff864  opal-3.10.10.tar.xz"
sha512sums="b72a058e001b5bf69de64467e6fc90280ec83bf31f46fa9f504e921b4702450f8732c7df333b9677e04cf1d33d27efbe22056211da94b879e013f5d7bcaa8465  opal-3.10.10.tar.xz"