aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmatemixer/APKBUILD
blob: afb194e658c6f2911f066d14312cb6611cfe768b (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmatemixer
pkgver=1.10.0
pkgrel=0
pkgdesc="A mixer library for MATE desktop"
url="http://git.mate-desktop.org/libmatemixer/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev intltool glib-dev alsa-lib-dev"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/libmatemixer-$pkgver.tar.xz"

_builddir="$srcdir/$pkgname-$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 \
                --build=$CBUILD \
                --host=$CHOST \
		--sysconfdir=/etc \
                --prefix=/usr \
		--enable-alsa \
                || return 1
        make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
	find "$pkgdir" -name \*.la -delete
}

md5sums="6799ee1ac771e63699fd830732a8f5d5  libmatemixer-1.10.0.tar.xz"
sha256sums="a4edc285fa07e6f556a3d6e384c7535f26d3a0bbe1cdc56eadd4f0c034ee5551  libmatemixer-1.10.0.tar.xz"
sha512sums="38a72bc1d09ff169375f16edae5ed4f7a7db92c796423da3107b0f364ae919ad6e4cd96980738bf06bda05a077314c2ff00cf5a59e98313e3989741b4523b341  libmatemixer-1.10.0.tar.xz"