diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-02-15 08:15:29 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-02-15 08:15:29 +0000 |
commit | 454357fd54e47f4ae48e9307bc060a68d185e130 (patch) | |
tree | a832e5b48714d8909cb505fcafc77afa8b989705 /main/alsa-utils | |
parent | 341f2cfb6cf11f838d47428aa940e42d24a08240 (diff) | |
download | aports-454357fd54e47f4ae48e9307bc060a68d185e130.tar.bz2 aports-454357fd54e47f4ae48e9307bc060a68d185e130.tar.xz |
main/alsa-utils: move alsaconf to subpkg
Diffstat (limited to 'main/alsa-utils')
-rw-r--r-- | main/alsa-utils/APKBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/main/alsa-utils/APKBUILD b/main/alsa-utils/APKBUILD index 84297bdd6d..7ea0b86dd3 100644 --- a/main/alsa-utils/APKBUILD +++ b/main/alsa-utils/APKBUILD @@ -1,27 +1,31 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=alsa-utils pkgver=1.0.23 -pkgrel=1 +pkgrel=2 pkgdesc="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)" url="http://www.alsa-project.org" arch="all" license="GPL" makedepends="alsa-lib-dev pciutils-dev ncurses-dev" depends="dialog" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc alsaconf" source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2 alsaconf.patch alsa.initd alsa.confd " +_builddir="$srcdir"/$pkgname-$pkgver + prepare() { - cd "$srcdir"/$pkgname-$pkgver - patch -Np1 -i ../alsaconf.patch || return 1 + cd "$_builddir" +# patch -Np1 -i ../alsaconf.patch || return 1 + return 0 } build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" ./configure --prefix=/usr \ --disable-xmlto \ --disable-nls \ @@ -30,11 +34,19 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make DESTDIR="$pkgdir" install install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa } + +alsaconf() { + arch="noarch" + depends="alsa-utils bash" + cd "$_builddir" + install -D -m755 alsaconf/alsaconf "$subpkgdir"/usr/bin/alsaconf +} + md5sums="cb0cf46029ac9549cf3a31bff6a4f4e1 alsa-utils-1.0.23.tar.bz2 5e65f278b5a77e3ee2821ad955c4cd91 alsaconf.patch 4a66dad46d5366e05098cde97f3d37b5 alsa.initd |