mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
main/libmad: modernise, mark no tests, fix license
This commit is contained in:
parent
3588dc7e62
commit
dda2c5c88b
@ -2,11 +2,12 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=libmad
|
||||
pkgver=0.15.1b
|
||||
pkgrel=7
|
||||
pkgrel=8
|
||||
pkgdesc="A high-quality MPEG audio decoder"
|
||||
url="http://www.underbit.com/products/mad/"
|
||||
arch="all"
|
||||
license="GPL"
|
||||
options="!check" # No test suite.
|
||||
license="GPL-2.0+"
|
||||
subpackages="$pkgname-dev"
|
||||
depends=
|
||||
makedepends="autoconf automake libtool"
|
||||
@ -17,34 +18,28 @@ source="http://downloads.sourceforge.net/sourceforge/mad/$pkgname-$pkgver.tar.gz
|
||||
mad.pc
|
||||
"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
update_config_sub || return 1
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
cd "$builddir"
|
||||
update_config_sub
|
||||
default_prepare
|
||||
libtoolize --force && aclocal -I m4 && autoconf \
|
||||
&& automake --add-missing --foreign || return 1
|
||||
&& automake --add-missing --foreign
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--enable-accuracy \
|
||||
|| return 1
|
||||
--enable-accuracy
|
||||
|
||||
make -j1 || return 1
|
||||
make -j1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -D -m644 "$srcdir"/mad.pc "$pkgdir"/usr/lib/pkgconfig/mad.pc
|
||||
}
|
||||
sha512sums="2cad30347fb310dc605c46bacd9da117f447a5cabedd8fefdb24ab5de641429e5ec5ce8af7aefa6a75a3f545d3adfa255e3fa0a2d50971f76bc0c4fc0400cc45 libmad-0.15.1b.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user