summaryrefslogtreecommitdiff
path: root/user/alsa-utils/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-28 00:46:32 -0700
committerDan Theisen <djt@hxx.in>2018-09-28 00:46:32 -0700
commitbc360abe6aae2e330b95d4a213d03760e6c90db8 (patch)
treec56ae090e8ad2de242715b33da5bfe1f42a441d1 /user/alsa-utils/APKBUILD
parentb3d159c4ae8bf6f565eac571346ec74b7dac09c6 (diff)
downloadpackages-bc360abe6aae2e330b95d4a213d03760e6c90db8.tar.gz
packages-bc360abe6aae2e330b95d4a213d03760e6c90db8.tar.bz2
packages-bc360abe6aae2e330b95d4a213d03760e6c90db8.tar.xz
packages-bc360abe6aae2e330b95d4a213d03760e6c90db8.zip
user/alsa-utils: new package
Diffstat (limited to 'user/alsa-utils/APKBUILD')
-rw-r--r--user/alsa-utils/APKBUILD37
1 files changed, 21 insertions, 16 deletions
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 <rnalrd@alpinelinux.org>
-# Maintainer: Max Rees <maxcrees@me.com>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
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