diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/alsa-utils/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/alsa-utils/MAKEPKG')
| -rw-r--r-- | opt/alsa-utils/MAKEPKG | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/opt/alsa-utils/MAKEPKG b/opt/alsa-utils/MAKEPKG new file mode 100644 index 0000000..0379135 --- /dev/null +++ b/opt/alsa-utils/MAKEPKG @@ -0,0 +1,64 @@ +#!/bin/mkpkg +# description: ALSA utilities +# url: https://www.alsa-project.org/ + +name=alsa-utils +version=1.2.16 +release=1 +depends=(alsa-lib ncurses) +services=(alsa) +source=(https://www.alsa-project.org/files/pub/utils/$name-$version.tar.bz2) + +sha256sums=( + "092399d5e8749a1d5e188e393157521cec4b75693b60ebb79bbce728cff2232c" +) + +build() { + cd $name-$version + + ./configure \ + --prefix=/usr \ + --disable-bat \ + --disable-nls \ + --disable-xmlto + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/man/fr + rm -rf $PKG/usr/share/man/man7 +} + +post_build() { + # runit service + install -d $PKG/etc/sv/alsa/log + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec 2>&1' \ + '/usr/sbin/alsactl restore' \ + 'exec chpst -b alsa pause' \ + > $PKG/etc/sv/alsa/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec /usr/sbin/alsactl store 2>&1' \ + > $PKG/etc/sv/alsa/finish + + printf '%s\n' \ + '#!/bin/sh' \ + 'mkdir -p /var/log/alsa' \ + 'exec svlogd -tt /var/log/alsa' \ + > $PKG/etc/sv/alsa/log/run + + chmod 755 $PKG/etc/sv/alsa/run + chmod 755 $PKG/etc/sv/alsa/finish + chmod 755 $PKG/etc/sv/alsa/log/run +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
