48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
# Template file for 'libao'
|
|
pkgname=libao
|
|
version=1.2.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-alsa-mmap"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="alsa-lib-devel pulseaudio-devel sndio-devel"
|
|
conf_files="/etc/libao.conf"
|
|
short_desc="Cross-platform audio output library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://xiph.org/ao/"
|
|
distfiles="https://github.com/xiph/libao/archive/${version}.tar.gz"
|
|
checksum=df8a6d0e238feeccb26a783e778716fb41a801536fe7b6fce068e313c0e2bf4d
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
vconf ${FILESDIR}/libao.conf
|
|
}
|
|
|
|
libao-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/doc
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|
|
libao-pulse_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - pulseaudio plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/ao/plugins-4/libpulse.so
|
|
}
|
|
}
|
|
libao-sndio_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - sndio plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/ao/plugins-4/libsndio.so
|
|
}
|
|
}
|