aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-07-31 10:49:45 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-08-05 11:48:35 -0300
commita16615aa3496f12c3ae2d0754d0f2efb13d2235e (patch)
tree6caad26e222e0a6c1226ae56deabc4bcad32dd5e
parentc90160e4414cbd085e9584b33aede279d23702bb (diff)
downloadaports-a16615aa3496f12c3ae2d0754d0f2efb13d2235e.tar.bz2
aports-a16615aa3496f12c3ae2d0754d0f2efb13d2235e.tar.xz
testing/alsa-tools: new aport
-rw-r--r--testing/alsa-tools/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/alsa-tools/APKBUILD b/testing/alsa-tools/APKBUILD
new file mode 100644
index 0000000000..15279cd441
--- /dev/null
+++ b/testing/alsa-tools/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=alsa-tools
+pkgver=1.1.7
+pkgrel=0
+pkgdesc="Advanced tools for certain sound cards"
+url="https://www.alsa-project.org"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="fltk-dev gtk+2.0-dev gtk+3.0-dev alsa-lib-dev bash autoconf automake
+ libtool"
+options="!check" # No tests
+subpackages="$pkgname-dev $pkgname-doc $pkgname-gui:_gui"
+source="ftp://ftp.alsa-project.org/pub/tools/alsa-tools-$pkgver.tar.bz2"
+
+prepare() {
+ # Remove qlo10k1 package, only works with Qt2/Qt3
+ sed 's/qlo10k1//' -i Makefile
+}
+
+build() {
+ make configure CONFIGURE_ARGS="--prefix=/usr"
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+
+ cp -r "$pkgdir"/usr/local/* "$pkgdir"/usr/
+ rm -r "$pkgdir"/usr/local
+}
+
+_gui() {
+ pkgdesc="$pkgdesc (GUI tools)"
+
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/echomixer "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/envy24control "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/hdajackretask "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/hdspconf "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/hdspmixer "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/rmedigicontrol "$subpkgdir"/usr/bin
+}
+
+sha512sums="d715fa5b909fb33ffce252b4ae9f027dc7c1a509253d52bda6ecbc5e0a38e7d30ab8486b14114b226424217812a0edf66e7ec11f7674e44c77a14e4dfb16889c alsa-tools-1.1.7.tar.bz2"