mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - disable neon for !aarch64
|
||
|
|
||
|
pkgname=mpg123
|
||
|
pkgver=1.28.0
|
||
|
pkgrel=1
|
||
|
pkgdesc='Console based real time MPEG Audio Player for Layer 1, 2 and 3'
|
||
|
url="https://sourceforge.net/projects/mpg123"
|
||
|
arch=('x86_64')
|
||
|
license=('LGPL2.1')
|
||
|
depends=('libltdl' 'alsa-lib')
|
||
|
makedepends=('sdl' 'jack' 'libpulse')
|
||
|
optdepends=('sdl: for sdl audio support'
|
||
|
'jack: for jack audio support'
|
||
|
'libpulse: for pulse audio support'
|
||
|
'perl: for conplay')
|
||
|
provides=(libmpg123.so libout123.so)
|
||
|
source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
||
|
sha512sums=('4e333ee4f3bbebcfff280cf286265e969a8da93b9043d03c0189e22cd40918b07bf12181bd06141d4479c78bc0d0ed472e0d3bb61b2fdb96fe9f7cd48f9a6b77'
|
||
|
'SKIP')
|
||
|
validpgpkeys=('D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE')
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
[[ $CARCH != "aarch64" ]] && CONFIG="--with-cpu=arm_nofpu"
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--enable-int-quality \
|
||
|
--with-audio="alsa oss sdl jack pulse" $CONFIG
|
||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
make DESTDIR="${pkgdir}" install
|
||
|
install -Dm 755 scripts/conplay "${pkgdir}/usr/bin/conplay"
|
||
|
}
|
||
|
|
||
|
# vim: ts=2 sw=2 et:
|