Commit 9b67f0f7 authored by Francesco Colista's avatar Francesco Colista

main/mpg123: upgrade to 1.25.2, modernize APKBUILD, added check()

parent 347c33a2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123 pkgname=mpg123
pkgver=1.25.1 pkgver=1.25.2
pkgrel=0 pkgrel=0
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3" pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
url="http://www.mpg123.org/" url="http://www.mpg123.org/"
...@@ -12,9 +12,15 @@ makedepends="libtool alsa-lib-dev linux-headers" ...@@ -12,9 +12,15 @@ makedepends="libtool alsa-lib-dev linux-headers"
source="http://www.mpg123.org/download/$pkgname-$pkgver.tar.bz2" source="http://www.mpg123.org/download/$pkgname-$pkgver.tar.bz2"
options="libtool" options="libtool"
_builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir"/$pkgname-$pkgver
check() {
cd "$builddir"
make check
}
build() { build() {
cd "$_builddir" cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -24,14 +30,13 @@ build() { ...@@ -24,14 +30,13 @@ build() {
--with-pic \ --with-pic \
--with-optimization=0 \ --with-optimization=0 \
--with-cpu=i386_fpu \ --with-cpu=i386_fpu \
--with-audio="alsa oss" \ --with-audio="alsa oss"
|| return 1 make
make || return 1
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
} }
sha512sums="5857fc91baf913e3116a808657d2246cf7662944a991652e53130b70464d821469c72574dff4d227c600276c0ec7e83990bdb99b6ce0144d167cc666f0a70789 mpg123-1.25.1.tar.bz2" sha512sums="1b063a7a497d6f643b43a0e0db0e1a8951bf110cabf8f3dc63d7ed1b8e47ef4a42649622a5e4efb582479beacd7d3872b4f061716a5f6970b3f5bed7ef4f3fe9 mpg123-1.25.2.tar.bz2"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment