From bc360abe6aae2e330b95d4a213d03760e6c90db8 Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Fri, 28 Sep 2018 00:46:32 -0700 Subject: user/alsa-utils: new package --- user/alsa-utils/APKBUILD | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'user/alsa-utils') diff --git a/user/alsa-utils/APKBUILD b/user/alsa-utils/APKBUILD index 7ecea8193..d4afb47ea 100644 --- a/user/alsa-utils/APKBUILD +++ b/user/alsa-utils/APKBUILD @@ -1,26 +1,25 @@ # Contributor: Leonardo Arena -# Maintainer: Max Rees +# Contributor: Natanael Copa +# Maintainer: Dan Theisen pkgname=alsa-utils pkgver=1.1.6 pkgrel=0 pkgdesc="Advanced Linux Sound Architecture (ALSA) utilities" -url="https://www.alsa-project.org/main/index.php/Main_Page" +url="http://www.alsa-project.org" arch="all" -options="!check" # No test suite. -license="GPL-2.0+ AND LGPL-2.0+ AND ISC AND GPL-2.0-only" +options="!check" # No test suite, applets use ncurses / don't have --version +license="GPL-2.0+" makedepends="alsa-lib-dev fftw-dev ncurses-dev pciutils-dev" -depends="bash dialog" -subpackages="$pkgname-doc $pkgname-dbg $pkgname-lang $pkgname-openrc" -replaces="alsaconf" +depends="dialog" +subpackages="$pkgname-doc alsaconf::noarch $pkgname-dbg $pkgname-openrc" source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2 alsaconf.patch alsa.initd - alsa.confd -" + alsa.confd" prepare() { - default_prepare update_config_sub + default_prepare } build() { @@ -29,18 +28,24 @@ build() { --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - --disable-xmlto + --disable-xmlto \ + --disable-nls make } package() { cd "$builddir" make DESTDIR="$pkgdir" install - install -Dm755 ../alsa.initd "$pkgdir"/etc/init.d/alsa - install -Dm644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa + install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa + install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa +} + +alsaconf() { + depends="alsa-utils bash" + cd "$builddir" + mkdir -p "$subpkgdir"/usr/sbin + mv "$pkgdir"/usr/sbin/alsaconf \ + "$subpkgdir"/usr/sbin } sha512sums="24d0ffaeeccecb3276d7d35ef51e6de6026a63fa5a1a1e4605b024f54d8097717e97ec9d33cfe50830ad17e4a89268ca24b065039b0df7f9fbe02b570617aa58 alsa-utils-1.1.6.tar.bz2 -- cgit v1.2.3-70-g09d2