aboutsummaryrefslogtreecommitdiffstats
path: root/testing/freealut/APKBUILD
blob: e51fcecb35efa5f7c829a9d40b7432780c0ebe20 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=freealut
pkgver=1.1.0
pkgrel=2
pkgdesc="A free audio library user toolkit"
url="https://github.com/vancegroup/freealut"
arch="all"
license="GPL2"
depends=
depends_dev="openal-soft-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="https://github.com/vancegroup/freealut/archive/freealut_${pkgver//./_}.tar.gz"

_builddir="$srcdir"/freealut-freealut_${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"
	./autogen.sh || return 1
	./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
}

md5sums="66e21cb1d2aee23f587d9304ac6cbddc  freealut_1_1_0.tar.gz"
sha256sums="c3880d7dbb90c7db54e1d6b88aa0a34dd9e2d828fd389be0d2cbb2632b0885dd  freealut_1_1_0.tar.gz"
sha512sums="c9dead230434b3916f91e219913c2b2c877c4594d74b63641246a6704e28fe8d415131127cc00b51355f2fdf4e2bbf8aaf2b802fec479b05927e39a8698c251e  freealut_1_1_0.tar.gz"