diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-03-25 04:35:41 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-03-25 04:35:41 +0000 |
commit | 2aac7c91d6a22da9af6ac791200ecae2fd64fd4e (patch) | |
tree | 767814e8ae339c1379444d061eb47c81a590e112 /user/libmatemixer | |
parent | 13fa4c900a5d7825c4802b12cecdf6e22e9dfac8 (diff) | |
parent | dc9e13229a7c2d216ec98a16075601b9540f7e53 (diff) | |
download | packages-2aac7c91d6a22da9af6ac791200ecae2fd64fd4e.tar.gz packages-2aac7c91d6a22da9af6ac791200ecae2fd64fd4e.tar.bz2 packages-2aac7c91d6a22da9af6ac791200ecae2fd64fd4e.tar.xz packages-2aac7c91d6a22da9af6ac791200ecae2fd64fd4e.zip |
Merge branch 'desktops.mate' into 'master'
Package the MATE desktop environment
See merge request !207
Diffstat (limited to 'user/libmatemixer')
-rw-r--r-- | user/libmatemixer/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/user/libmatemixer/APKBUILD b/user/libmatemixer/APKBUILD new file mode 100644 index 000000000..a3b1fc797 --- /dev/null +++ b/user/libmatemixer/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=libmatemixer +pkgver=1.22.0 +pkgrel=0 +pkgdesc="Sound mixer library for the MATE desktop environment" +url="https://mate-desktop.org" +arch="all" +license="LGPL-2.0+" +depends="" +makedepends="alsa-lib-dev intltool pulseaudio-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-alsa $pkgname-pulse" +source="https://pub.mate-desktop.org/releases/${pkgver%.*}/libmatemixer-$pkgver.tar.xz" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +alsa() { + pkgdesc="$pkgdesc (ALSA backend)" + install_if="$pkgname=$pkgver-r$pkgrel alsa-lib" + mkdir -p "$subpkgdir"/usr/lib/$pkgname + mv "$pkgdir"/usr/lib/$pkgname/$pkgname-alsa.so "$subpkgdir"/usr/lib/$pkgname +} + +pulse() { + pkgdesc="$pkgdesc (PulseAudio backend)" + install_if="$pkgname=$pkgver-r$pkgrel pulseaudio" + mkdir -p "$subpkgdir"/usr/lib/$pkgname + mv "$pkgdir"/usr/lib/$pkgname/$pkgname-pulse.so "$subpkgdir"/usr/lib/$pkgname +} + +sha512sums="6eaa006142601c077ac70739e637273288a4b9713dfc4179341c4832ae4e3b362e92104e150132ee274224d6c5dc057d812b7e1814e49a7690581de6d81e0db8 libmatemixer-1.22.0.tar.xz" |