aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmatemixer/APKBUILD
blob: 14802808b17ceda85b1bb5bacb01e64c0319d2be (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: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmatemixer
pkgver=1.14.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
}

md5sums="9c66de01bb037609a813956ecf556944  libmatemixer-1.14.0.tar.xz"
sha256sums="8293a0b0c125b4749e415fb2e4f80adcf313b769ce02f49521d6ddd323d7c07d  libmatemixer-1.14.0.tar.xz"
sha512sums="e7ac0d583d740df87af75f3b590e81d0716e0169ec9021bfe2d0e2065f78905ed96a37b606233b4cfbf190116e111edfca89d912bdb37d37d724d22bfb8d84fb  libmatemixer-1.14.0.tar.xz"