void-packages/srcpkgs/libmad/template

29 lines
742 B
Bash

# Template file for 'libmad'
pkgname=libmad
version=0.15.1b
revision=8
build_style=gnu-configure
hostmakedepends="automake pkg-config"
short_desc="High-quality MPEG audio decoder"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.underbit.com/products/mad/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/mad/$pkgname-$version.tar.gz"
checksum=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
pre_configure() {
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
autoconf
}
libmad-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}